microsoft-authentication-library-for-js: 0.1.3 broke AoT compiling (Function calls are not supported in decorators but 'MsalModule' was called)
I’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
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 18 (7 by maintainers)
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.
I can also confirm. was at 0.1.3 and moved to .4-beta.1. Build completed. No code changes required.
We have published a new version of msal-angular with compatibility for IE11:
npm install @azure/msal-angular@0.1.4-beta.1
Please test this version and let us know if there are any issues. We will promote to a stable release once we’re confident this version doesn’t introduce any regressions. Thanks!
Please keep me posted. My company has been waiting on a solution for the IE11 browser for some time now. TIA, Mirko
Unfortunately, the fix to properly support modern browsers and IE11 (for both JIT and AOT) is proving to be more complicated than expected. We have deprecated
0.1.3
and set thelatest
tag back to0.1.2
, so we recommend pinning your version of@azure/msal-angular
to0.1.2
while we work on a proper fix. Apologies for the inconvenience. I’ll update this ticket when we have a proper resolution, thanks!