Issue with build and ng-annotate in windows
I just updated the generator and fired up a new project and it does not build on widows out of the box. I reverted back to ngmin and the build process works as expected.
The error I get with ng-annotate in the build process is:
Running "ngAnnotate:main" (ngAnnotate) task Warning: Cannot assign to read only property '$methodName' of false Use --force to continue.
Aborted due to warnings.
I run with admin privs to get around that
same error with me. can't solve
I don't have this problem. I just tried reproducing it and I couldn't. That said, its obviously something with ng-annotate. This looks like the issue:
https://github.com/olov/ng-annotate/issues/139
Try updating grunt-ng-annotate and try again.
even after updating still happened.
I can't reproduce this problem. Regardless it's obviously an issue with ngAnnotate. I suggest you file a bug with that project. They should be able to help you debug the problem better than I can.
Happens while running node version 0.12.1 (latest). works after downgrading node version.
Had a friend run into this trouble too. He was using node v0.12.0, downgraded it to v0.10.39, and all is fine with the world.