#Update to Angular v16 JIT compilation

6 messages · Page 1 of 1 (latest)

obsidian quartz
#

Hello, I'm using adal-angular4 for implementing authentication with Azure. After I updated to version 16, I'm getting the following error after compiling in the browser console:

Error: The injectable 'AdalService' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.

JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.

Alternative, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',
or manually provide the compiler with 'import "@angular/compiler";' before bootstrapping.

Can I solve this error in any way ?

Thanks.

quiet ridge
#

you need to import @angular/compiler explicitly but ... like stated above this definitely not recommended.

#

I just took a look at that lib

#

I would not recommend using it at all. It has not been updated in the last 4 years. You can consider it abandonned

obsidian quartz
obsidian quartz