olov / ng-annotate

Add, remove and rebuild AngularJS dependency injection annotations
MIT License
2.03k stars 152 forks source link

error: couldn't process source due to parse error Unexpected token #264

Closed AlienHu closed 5 years ago

AlienHu commented 5 years ago

Hi , I'm using the "gulp-ng-annotate": "^2.1.0" , I'm trying to use the async await in my code , but ng-annotate task is faileing with the below error

error: couldn\'t process source due to parse error\nUnexpected token (54:8)', plugin: 'gulp-ng-annotate', showProperties: true, showStack: false, __safety: { toString: [Function: bound ] } }

olov commented 5 years ago

Hi! ng-annotate is deprecated and closed since two years back, see https://github.com/olov/ng-annotate#deprecation-notice---so-long-and-thanks-for-all-the-bits

AlienHu commented 5 years ago

Oh , thanks for writing back @olov , do you suggest any example if i want to replacegulp-ng-annotate by babel-plugin-angularjs-annotate , it'll be greate if you can help me , thank you

mhicauber commented 4 years ago

Hi @AlienHu did you make it work with ng-annotate in the end ?