I am working on a tutorial about Node.js, which can be found here: http://www.johnpapa.net/get-up-and-running-with-node-and-visual-studio/
I can get the application to run in glup serve-dev --sync. It works well. The problem i am facing is gulp serve-build --sync or gulp build I get this error:
Any idea?
gulp build
06:06:12] Using gulpfile F: \ Projects \ myapp \ gulpfile.js
06:06:12] Starting "wiredep" ...
06:06:12] Connecting Bauer dependencies in html 06:06:12] Starting "clean styles" ...
06:06:12] Cleaning: ./. Tmp / /.css,/build/styles/ /.css
06:06:12] Starting a "clean code" ...
06:06:12] Cleaning: ./. Tmp / /.js./build/js/ /.js./build/ /.html
06:06:12] Starting the "vet" ... 06:06:12] Source analysis with JSHint and JSCS
06:06:13] Starting "clean images" ...
06:06:13] Cleaning: ./ build / images / /.*
06:06:13] Starting "clean fonts" ...
06:06:13] Cleaning: ./ build / fonts / /.
06:06:13] Finished the "clean images" after 83 ms
06:06:13] Starting the "images" ...
06:06:13] Compress and copy images
06:06:15] Finished "clean fonts" after 2.56 s
06:06:15] Starting the "fonts" ...
06:06:15] Copy fonts
06:06:15] Finished "pure styles" after 3.36 s
06:06:15] The beginning of the "styles" ...
06:06:15] Compiling Less â CSS
06:06:16] Finished the "clean code" in 4.12 s
06:06:16] Running 'templatecache' ...
06:06:16] Creating the AngularJS $ Cache Template
06:06:18] Finished "styles" after 2.39 s
06:06:18] Completed the "template" after 1.96 s
06:06:18] Finished "fonts" after 2.87 s
06:06:19] gulp object of 27 files in index.html.
06:06:19] Finished "wiredep" after 6.87 s
06:06:19] Starting the "injection" ...
06:06:19] Connect css to html after files are ready
06:06:19] gulp -inject 1 file in index.html.
06:06:19] The "injection" is completed after 153 ms
06:06:20] Finished by the "veterinarian" after 7.63 s
06:06:20] Starting the "test" ...
ARN [config]: "/" proxied, you should probably change urlRoot to avoid conflicts
NFO [karma]: Karma v0.12.31 server started at http: // localhost: 9876 /
NFO [launcher]: launch PhantomJS browser
ARN [observer]: the template "F: / Projects / myapp / src / client / tests / server-integration / / *. Spec.js" does not match any files.
06:06:22] gulp -imagemin: Minified 4 images (saved 3.37 kB - 10.7%)
06:06:22] Ready-made "images" after 8.84 s
NFO [PhantomJS 1.9.7 (Windows 8)]: connected to vlORQyl9XHgRhe6r6u7k juice with identifier 8196448
hantomJS 1.9.7 (Windows 8): Completed 39 of 39 SUCCESSES (0.519 s / 0.07 sec)
=====================> =================
: 87.69% (235/268)
ranch: 50% (20/40)
: 84.62% (77/91)
ines: 87.55% (232/265)
06:06:25] Karma is completed
06:06:25] The "test" is completed after 5.45 s
06:06:25] Starting to "optimize" ...
06:06:25] Optimization of js, css and html
06:06:27] gulp -inject 1 file in index.html.
: \ Projects \ MyApp \ node_modules \ gulp -ng-Annotation \ node_modules \ ng-Annotation \ assemblies \ ES5 \ ng-Annotation-main.js: 330
target. $ methodName = method.name;
^
ypeError: Unable to set read only property $ methodName false property in matchRegular (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ build \ es5 \ ng-annotate-main.js: 330: 24 )
in the match (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ build \ es5 \ ng-annotate-main.js: 36: 66)
at traverse.post (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ build \ es5 \ ng-annotate-main.js: 995: 23)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 50: 13)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 44: 21)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 44: 21)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 44: 21)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 44: 21)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 41: 25)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 44: 21)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 41: 25)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 44: 21)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 41: 25)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 44: 21)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 44: 21)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 44: 21)
when visiting (F: \ Projects \ myapp \ node_modules \ gulp -ng-annotate \ node_modules \ ng-annotate \ node_modules \ ordered-ast-traverse \ ordered-ast-traverse.js: 41: 25)
...
source share