Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 4 animation giving error as "no exported member '?DomAnimationEngine'"

Tags:

angular

I need to work on Angular 4 animation so i followed the usual steps like importing the BrowserAnimationsModule module in the root module and importing it in the component. I have also installed npm modules but I am getting an error as

node_modules/@angular/animations/browser"' has no exported member '?DomAnimationEngine'

Please let me know what i need to do to solve it.

like image 605
Bonzo Avatar asked Jun 27 '17 13:06

Bonzo


1 Answers

Check your package.json file, and remove the ^ from the angular/animations dependency: before:

    "@angular/animations": "^4.1.3",

after:

    "@angular/animations": "4.1.3",

then delete your node_modules folder and run

npm install

If it doesn't work try following the issue recommendations on https://github.com/angular/angular/issues/17400

I had the same problem, and after some struggling it worked.

like image 65
JSantaCL Avatar answered Nov 15 '22 06:11

JSantaCL