Builder @angular/build:application for v19 throws a runtime error "The injectable '_PlatformNavigation' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available." #29624
Labels
needs: repro steps
We cannot reproduce the issue with the information given
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
We just updated our app from Angular 17 to Angular 19 (using cli ng update). After fixing some minor warnings, errors and updating to new builder "@angular/build:application", we are getting below error in chrome devtool console. (although initial testing shows that the app is working without any issue)
JIT compilation failed for injectable class _PlatformNavigation
Uncaught Error: The injectable '_PlatformNavigation' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.
Adding import "@angular/compiler in main.ts before bootstrapping did not fix it.
How can we fix the warning?
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: