How to include JIT compiler in angular 13 app manually

Viewed 29

I am upgrading my angular app from 6 to 13. I was able to solve the dependencies and do ng build successfully. When I ran the appplication, I am getting the below error.

main.js:1 Uncaught Error: JIT compiler unavailable
    at g (main.js:1:45697)
    at bt (main.js:1:198212)
    at main.js:1:561691
    at 5130 (main.js:1:561899)
    at t (runtime.js:1:143)
    at main.js:1:2275919
    at n (runtime.js:1:1550)
    at main.js:1:65

I tried to use aot = true in angular.json file and also modify "postinstall": "ngcc --properties es5 browser module main --first-only" in package.json. I am still not able to resolve this issue. Are there any options to include JIT compiler in the angular appplication, so it runs without errors.

0 Answers
Related