I am migrating my angular application from 6 to 13. I was able to build successfully. However, the main.js file in the 'dist' folder is not generated properly. It don't see anything related to webpack_require and other functions. I see 'throw new Error("JIT compiler unavailable")' somewhere in the script file. As such when I launch the application, I get the following error when I inspect the browser.
main.js:1 Uncaught Error: JIT compiler unavailable at yr (main.js:1:1987743) at Jk.get (main.js:1:2102120) at Jt (main.js:1:1973792) at new xy (main.js:1:2084811) at iC (main.js:1:2118770) at o.bootstrapModule (main.js:1:2120814) at 7589 (main.js:1:1365445) at t (runtime.js:1:143) at main.js:1:2141699 at n (runtime.js:1:1550)
Not sure what is causing this error. Any one in the same scenario who fixed the issue.