johnpapa / gulp-patterns

Playground for Gulp Recipes
501 stars 146 forks source link

production build failing while trying to inject file into index #92

Closed EnergeticPixels closed 9 years ago

EnergeticPixels commented 9 years ago

I am evaluating the possibility to use your gulp-patterns as a starting point for several web dev projects we have for this fiscal year and next. The build on the development side works just fine. But when I attempt to build for production I am running into node error directly or during gulp-inject 1 file into index.html (its using gulp-ng-annotate (ng-annotate-main.js at line 330). Node is having issues with Cannot assign to read only property '$methodName' of false.

I have double checked to make sure that I am using the same version of ng-annotate that you are in your project. Got any ideas?? Tony

gulp-patterns_nodeerror

EnergeticPixels commented 9 years ago

John, I bumped gulp-ng-annotate from version ^0.3.2 to ^0.5.0. Build task works great now.