Stuck with weird error after upgrading to angular 14

Viewed 21

I upgraded to Angular 14 and now suddenly, I am getting error like below:

enter image description here

Now, I dont know what is causing this because the error is not at all explanatory. I am also seeing below warning message when start my server locally:

enter image description here

Can someone please give me hint ? I looked at the polyfill.js which is generated by angular-cli. I dont see any issue in my current project.

Please please help

1 Answers

I would suggest to start tackling this problem by removing node_modules and package-lock.json file from the app folder and reinstall a few things from scratch:

  1. npm install -g typescript@latest (to ensure you have a newer version than ES5)
  2. npm install (for the rest of the modules)
Related