urish / angular-moment

Moment.JS directives for Angular.JS (timeago and more)
MIT License
2.6k stars 397 forks source link

Cannot run ngAnnotate:angular task on "angular-moment": "^1.0.1" #286

Closed lizka closed 7 years ago

lizka commented 7 years ago

I'm getting error like below `Generating "build/temp/src/js/lib/moment/src/locale/ar-tn.js" from: "./src/js/lib/moment/src/locale/ar-tn.js"...ERROR

error: couldn't process source due to parse error 'import' and 'export' may appear only with 'sourceType: module' (5:0)`

for "angular": "1.5.11"

I guess my scripts are injected correctly, because it works proper for "angular-moment": "0.10.3", just for "angular-moment": "^1.0.1" problem occurs. Any ideas?

lizka commented 7 years ago

Solved. You can close this issue, exclude moment library in ngAnnotate task helped :)