Error: JIT compiler unavailable after Angular upgrade from 6 to 13

Viewed 13

I upgraded my angular application from v6 to v13.2.0 I was able to get all the dependencies correct and was able to do ng build successfully. When I run the application, I get the 'JIT compiler unavailable' error. As per different blogs, I tried to change tsconfig.json and tsconfig.app.json by adding enableIvy: true, still not able to get the error out. Any other clues?

Error:

main.js:1 Error: JIT compiler unavailable at Ii (main.js:1:2173559) at Function.get (main.js:1:2230291) at Xa (main.js:1:2159118) at zm (main.js:1:2218492) at vM (main.js:1:2216984) at s.value (main.js:1:2216994) at main.js:1:2216773 at main.js:1:2173877 at Array.forEach () at xi (main.js:1:2173825)

tsconfig.json { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2015", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es5", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2017", "dom" ] }, "angularCompilerOptions": { "enableIvy" : true, "strictTemplates" : true, "strictInjectionParameters": true } }

tsconfig.app.json { "extends": "../tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] }, "exclude": [ "test.ts", "**/*.spec.ts" ], "angularCompilerOptions": { "enableIvy" : true, "strictTemplates" : false, } }

0 Answers
Related