generator-gulp-angular icon indicating copy to clipboard operation
generator-gulp-angular copied to clipboard

Typescript error

Open pluswave opened this issue 9 years ago • 6 comments

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 .

pluswave avatar Oct 18 '15 12:10 pluswave

At end of yo gulp-angular I think you have error because TSD is not installed by npm -g install tsd

zckrs avatar Oct 19 '15 10:10 zckrs

Same issue and I just ran npm -g install tsd

mackelito avatar Oct 19 '15 19:10 mackelito

try npm install tsd

0101adm avatar Oct 19 '15 20:10 0101adm

No idea why .tmp/typings and files are not created. by running tsd install manually, seems all OK now.

pluswave avatar Oct 20 '15 07:10 pluswave

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.

Swiip avatar Oct 20 '15 07:10 Swiip

Any update on this issue?

mackelito avatar Feb 29 '16 10:02 mackelito