generator-cg-angular icon indicating copy to clipboard operation
generator-cg-angular copied to clipboard

Issue with build and ng-annotate in windows

Open bolora opened this issue 10 years ago • 7 comments

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.

bolora avatar Feb 10 '15 20:02 bolora

I run with admin privs to get around that

AquilaSagitta avatar Feb 10 '15 23:02 AquilaSagitta

same error with me. can't solve

Islameldesoky avatar Feb 17 '15 08:02 Islameldesoky

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.

cgross avatar Feb 18 '15 20:02 cgross

even after updating still happened.

Islameldesoky avatar Feb 22 '15 13:02 Islameldesoky

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.

cgross avatar Feb 22 '15 17:02 cgross

Happens while running node version 0.12.1 (latest). works after downgrading node version.

Islameldesoky avatar Mar 29 '15 13:03 Islameldesoky

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.

lolptdr avatar Sep 01 '15 18:09 lolptdr