generator-gulp-angular
generator-gulp-angular copied to clipboard
Typescript error
Hello, I am new to yo and this generator, but I found I could not success to build or test if I choose typescript (all other options are default). Here is my error for build:
$gulp build
[21:07:29] Using gulpfile ~/g2/gulpfile.js
[21:07:29] Starting 'scripts'...
[21:07:29] Starting 'styles'...
[21:07:29] Starting 'partials'...
[21:07:30] Starting 'fonts'...
[21:07:30] Starting 'other'...
[21:07:30] gulp-inject 2 files into index.scss.
[21:07:34] Time: 3944ms
ERROR in ./src/app/index.module.ts
Module build failed: Error: ENOENT, open '/home/somebody/g2/.tmp/typings/tsd.d.ts'
at Error (native)
[21:07:34] Finished 'scripts' after 4.95 s
[21:07:34] Finished 'styles' after 4.73 s
[21:07:34] Starting 'inject'...
[21:07:34] gulp-inject 1 files into index.html.
[21:07:34] gulp-inject 1 files into index.html.
[21:07:34] Finished 'inject' after 114 ms
[21:07:34] Finished 'partials' after 4.46 s
[21:07:34] Starting 'html'...
[21:07:35] gulp-inject 1 files into index.html.
[21:07:36] dist/ maps/styles/app-e589e4581d.css.map 792.42 kB
[21:07:36] dist/ maps/styles/vendor-c2769e81fe.css.map 106.11 kB
[21:07:36] dist/ maps/scripts/app-491d8ec4a3.js.map 14.65 kB
[21:07:36] Finished 'fonts' after 6.85 s
[21:07:36] Finished 'other' after 6.73 s
I am using nodev v0.12.7 on debian 8 and have latest yo and generator-gulp-angular installed .
At end of yo gulp-angular
I think you have error because TSD is not installed by npm -g install tsd
Same issue and I just ran npm -g install tsd
try npm install tsd
No idea why .tmp/typings and files are not created. by running tsd install
manually, seems all OK now.
tsd install is run automatically at the end of the generation. If you didn't have the tsd command at this point it failed. If you install it after, you have to manually run tsd install.
Any update on this issue?