Kagami / gulp-ng-annotate

:pushpin: Add angularjs dependency injection annotations with ng-annotate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build error related to gulp-ng-annotate

StGc opened this issue · comments

commented

When I build our project using gulp-build command I get following error -

events.js:72
throw er; // Unhandled 'error' event
^
Error in plugin '←[36mgulp-ng-annotate←[39m'
scripts\vendor-2c34fe9b.js: error: couldn't process source due to parse error
Line 48010: Unexpected token .
at Transform._transform (C:\WorProj\S1SurveyClient\S1SurveyClient\node_modul
es\gulp-ng-annotate\index.js:41:26)
at Transform._read (C:\WorProj\S1SurveyClient\S1SurveyClient\node_modules\gu
lp-ng-annotate\node_modules\through2\node_modules\readable-stream\lib_stream_tr
ansform.js:184:10)
at Transform._write (C:\WorProj\S1SurveyClient\S1SurveyClient\node_modules\g
ulp-ng-annotate\node_modules\through2\node_modules\readable-stream\lib_stream_t
ransform.js:172:12)
at doWrite (C:\WorProj\S1SurveyClient\S1SurveyClient\node_modules\gulp-ng-an
notate\node_modules\through2\node_modules\readable-stream\lib_stream_writable.j
s:237:10)
at writeOrBuffer (C:\WorProj\S1SurveyClient\S1SurveyClient\node_modules\gulp
-ng-annotate\node_modules\through2\node_modules\readable-stream\lib_stream_writ
able.js:227:5)
at Transform.Writable.write (C:\WorProj\S1SurveyClient\S1SurveyClient\node_m
odules\gulp-ng-annotate\node_modules\through2\node_modules\readable-stream\lib_
stream_writable.js:194:11)
at write (C:\WorProj\S1SurveyClient\S1SurveyClient\node_modules\gulp-filter
node_modules\through2\node_modules\readable-stream\lib_stream_readable.js:623:2
4)
at flow (C:\WorProj\S1SurveyClient\S1SurveyClient\node_modules\gulp-filter\n
ode_modules\through2\node_modules\readable-stream\lib_stream_readable.js:632:7)

at DestroyableTransform.pipeOnReadable (C:\WorProj\S1SurveyClient\S1SurveyCl

ient\node_modules\gulp-filter\node_modules\through2\node_modules\readable-stream
\lib_stream_readable.js:664:5)
at DestroyableTransform.emit (events.js:92:17)

Not able to resolve it.

Check scripts\vendor-2c34fe9b.js: most likely it has incorrent JS syntax.

commented

I am not able to find any error in it.

Line 48010: Unexpected token .

commented

This file created in distributable folder when I build using gulp build. I deleted this file. Now it is not created again. Please let me know how I get this file?

I don't know. It must be somewhere in your build configuration.
Does the problem still occur?

commented

Yes it does :(

Thus I'm not sure it's the gulp-ng-annotate problem so closing this.
Feel free to provide additional debug info and reopen if you think it is.

Hey, how did you find the file in which to look for the erroneous code? I am unable to find where the syntax error is. Please help.