0.1.3 broke AoT compiling (Function calls are not supported in decorators but 'MsalModule' was called)
See original GitHub issueI’m submitting a…
[x] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:
Library version
Library version: 0.1.3
Current behavior
When compiling using the AoT compiler (ng serve --aot
or ng build --prod
) it’ll throw this error:
ERROR in Error during template compile of 'AppModule'
Function calls are not supported in decorators but 'MsalModule' was called.
Expected behavior
No error
Minimal reproduction of the problem with instructions
Upgrade to "@azure/msal-angular": "0.1.3"
and run ng serve --aot
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:18 (7 by maintainers)
Top Results From Across the Web
How to get rid of Function calls are not supported in ...
ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'ChartModule' was called. Now, i know ...
Read more >Solving AOT Error in NgRx: Function calls are not supported in ...
However when you build the Angular project using prod mode (AOT by default) ... Function calls are not supported in decorators but 'createAction'...
Read more >Ahead-of-time (AOT) compilation - Angular
The compiler only supports metadata for the Angular decorators in the @angular/core module. Function calls, Factory functions must be exported, named functions.
Read more >[Solved]-How to get rid of Function calls are not supported in ...
Coding example for the question How to get rid of Function calls are not supported in decorators in Angular aot compiling?-angular.js.
Read more >The Ahead-of-Time (AOT) compiler - Angular
Most importantly, the compiler only generates code to create instances of certain classes, support certain decorators, and call certain functions from the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can confirm that
^0.1.4-beta.1
can compile using the AoT compiler 👍This has been fixed with the betas, and will be included in the next release. Closing.