Skip to content

ngAnnotate fails on build #1

@ElliotPsyIT

Description

@ElliotPsyIT

I was persuaded by your novel but quite intuitive angular project architecture (http://java.dzone.com/articles/improvising-angular-require) to give this starter project a try.

When running the default gulp to build the app, the process failed apparently from a ngAnnotate parsing error. I also noticed a OptionParser::InvalidOption error for 'style's, though I don't know its significance. I'm a relative newbie, so I don't know how to troubleshoot this particular error. I provide the backtrace for your review. Any assistance would be greatly appreciated!

[10:49:59] Finished 'jshint' after 17 s
[10:49:59] Starting 'styles'...
[10:50:00] OptionParser::InvalidOption: invalid option: --sourcemap=none
  Use --trace for backtrace.
[10:50:01] Finished 'styles' after 1.06 s
[10:50:01] Starting 'compresscss'...
[10:50:01] Finished 'compresscss' after 4.27 ms
[10:50:01] Starting 'ngAnnotate'...

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: bower_components/jquery/src/intro.js: error: couldn't process source due to parse error
Unexpected token (45:0)
    at transform (/Users/ElliotFielstein/Angular/angular-require-template/src/node_modules/gulp-ng-annotate/index.js:20:11)
    at Transform._transform (/Users/ElliotFielstein/Angular/angular-require-template/src/node_modules/gulp-ng-annotate/index.js:68:25)
    at Transform._read (/Users/ElliotFielstein/Angular/angular-require-template/src/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at Transform._write (/Users/ElliotFielstein/Angular/angular-require-template/src/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/Users/ElliotFielstein/Angular/angular-require-template/src/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)
    at writeOrBuffer (/Users/ElliotFielstein/Angular/angular-require-template/src/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)
    at Transform.Writable.write (/Users/ElliotFielstein/Angular/angular-require-template/src/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)
    at write (/Users/ElliotFielstein/Angular/angular-require-template/src/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)
    at flow (/Users/ElliotFielstein/Angular/angular-require-template/src/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)
    at DestroyableTransform.pipeOnReadable (/Users/ElliotFielstein/Angular/angular-require-template/src/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions