Skip to content

Ver 4 gulp build fails #2143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
RonAlmog opened this issue Aug 11, 2016 · 2 comments
Closed
1 task done

Ver 4 gulp build fails #2143

RonAlmog opened this issue Aug 11, 2016 · 2 comments

Comments

@RonAlmog
Copy link

  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.0.1
Node 6.3.1
npm 3.10.5
Operating System Windows 10
etc etc
Item Answer
Transpiler TypeScript
Markup HTML
CSS CSS
Router ui-router
Client Tests Jasmine
DB MongoDB
Auth Y
etc etc

running with gulp serve works. but gulp build fails. here is the console output:

D:\Projects\MEAN\test5>gulp build
[18:30:06] Requiring external module babel-register
(node:9176) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[18:30:14] Using gulpfile D:\Projects\MEAN\test5\gulpfile.babel.js
(node:9176) DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:9176) DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
[18:30:14] Starting 'build'...
[18:30:14] Starting 'clean:dist'...
[18:30:14] Starting 'clean:tmp'...
[18:30:14] Finished 'clean:dist' after 12 ms
[18:30:14] Finished 'clean:tmp' after 9.29 ms
[18:30:14] Starting 'inject'...
[18:30:14] Starting 'inject:scss'...
[18:30:14] gulp-inject 5 files into app.scss.
[18:30:14] Finished 'inject:scss' after 132 ms
[18:30:14] Finished 'inject' after 133 ms
[18:30:14] Starting 'transpile:server'...
[18:30:15] Finished 'transpile:server' after 1.15 s
[18:30:15] Starting 'build:images'...
[18:30:16] Starting 'typings'...
[18:30:18] Finished 'typings' after 2.22 s
[18:30:19] gulp-imagemin: Minified 1 image (saved 3.71 kB - 30.1%)
[18:30:19] Finished 'build:images' after 3.72 s
[18:30:19] Starting 'copy:extras'...
[18:30:19] Starting 'copy:assets'...
[18:30:19] Starting 'copy:fonts:dist'...
[18:30:19] Starting 'copy:server'...
[18:30:19] Starting 'webpack:dist'...
[18:30:21] Finished 'copy:server' after 1.43 s
[18:30:23] Finished 'copy:extras' after 3.79 s
[18:30:25] Finished 'copy:fonts:dist' after 6.15 s
[18:30:25] Finished 'copy:assets' after 6.25 s
[18:30:47] Version: webpack 1.13.1

ERROR in [default] D:/Projects/MEAN/test5/typings/browser/ambient/jquery/index.d.ts:3192:12
Subsequent variable declarations must have the same type. Variable '$' must be
of type 'cssSelectorHelper', but here has type 'JQueryStatic'.
Child html-webpack-plugin for "..\client\index.html":

D:\Projects\MEAN\test5>

@Awk34
Copy link
Member

Awk34 commented Aug 11, 2016

see #2110 & #2144

@Awk34 Awk34 closed this as completed Aug 11, 2016
@RonAlmog
Copy link
Author

RonAlmog commented Aug 12, 2016

Sorry, i'm not sure what you mean.
to be safe, i have updated the generator (saw your latest fix, that means new ver?)
and created a project. (typescript). same results: serve works, build fails.
i did the advice in 2110 : removed the protractor line from typings.json, and ran typings prune.
same results: serve works, build fails. here is the output:

D:\Projects\MEAN\test6>gulp build
[21:43:39] Requiring external module babel-register
(node:6516) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[21:43:47] Using gulpfile D:\Projects\MEAN\test6\gulpfile.babel.js
(node:6516) DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:6516) DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
[21:43:47] Starting 'build'...
[21:43:47] Starting 'clean:dist'...
[21:43:47] Starting 'clean:tmp'...
[21:43:47] Finished 'clean:tmp' after 11 ms
[21:43:47] Finished 'clean:dist' after 56 ms
[21:43:47] Starting 'inject'...
[21:43:47] Starting 'inject:scss'...
[21:43:47] gulp-inject 5 files into app.scss.
[21:43:47] Finished 'inject:scss' after 106 ms
[21:43:47] Finished 'inject' after 107 ms
[21:43:47] Starting 'transpile:server'...
[21:43:48] Finished 'transpile:server' after 1.2 s
[21:43:48] Starting 'build:images'...
[21:43:49] Starting 'typings'...
[21:43:50] gulp-imagemin: Minified 1 image (saved 3.71 kB - 30.1%)
[21:43:51] Finished 'build:images' after 2.41 s
[21:43:51] Finished 'typings' after 2.3 s
[21:43:51] Starting 'copy:extras'...
[21:43:51] Starting 'copy:assets'...
[21:43:51] Starting 'copy:fonts:dist'...
[21:43:51] Starting 'copy:server'...
[21:43:51] Starting 'webpack:dist'...
[21:43:52] Finished 'copy:server' after 1.02 s
[21:43:55] Finished 'copy:extras' after 3.66 s
[21:43:57] Finished 'copy:fonts:dist' after 5.83 s
[21:43:57] Finished 'copy:assets' after 5.93 s
[21:44:20] Version: webpack 1.13.1

ERROR in [default] D:/Projects/MEAN/test6/typings/browser/ambient/jquery/index.d.ts:3192:12
Subsequent variable declarations must have the same type. Variable '$' must be
of type 'cssSelectorHelper', but here has type 'JQueryStatic'.
Child html-webpack-plugin for "..\client\index.html":

D:\Projects\MEAN\test6>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants