olov / ng-annotate

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

Cannot assign to read only property '$methodName' of false Use --force to continue. #141

Closed TheBranchDriftCatalyst closed 9 years ago

TheBranchDriftCatalyst commented 9 years ago

I ran into this problem today and after a bit researched have discovered the problem might lie in, ng-annotate-main.js

Here is the original issue: https://github.com/olov/ng-annotate/issues/126

After the addition of the guard statement as described this works (-ish), I have not run the test suite but grunt build works again.