Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 9.0.7 Ivy: BrowserAnimationsModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy

Tags:

angular

I created a new Angular project and get the following error:

This likely means that the library (@angular/platform-browser/animations) which declares BrowserAnimationsModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy

My Angular version is: 9.0.7

As suggested here I tried to remove the node_modules and reinstall it, but it didn't help.

like image 886
MJ X Avatar asked Oct 27 '22 22:10

MJ X


1 Answers

From issue comment from angular repository https://github.com/angular/angular/issues/29960#issuecomment-484420080

If you set "target": "es5" in your tsconfig.app.json, then this bug does not happen.

like image 100
Franky238 Avatar answered Oct 30 '22 00:10

Franky238