After migrating from Angular v11 to v16, getting the below error. Can I get a solution for this please.
Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Emit attempted before Angular Webpack plugin initialization
I have tried adding "enableIvy":false to my tsconfig.js file.
I have tried reinstalling the compatible typescript version.
Deleted the node modules and reinstalled the node.
Even after doing the above, not able to resolve the issue.