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

I need to work with Angular 4 animations, so I followed the usual steps like importing the BrowserAnimationsModule in the root module and importing it into the component. I have installed npm modules as well, but I am getting an error like

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

      

Please let me know what I need to do to resolve this issue.

+3


source to share


1 answer


Check your package.json file and remove ^ from angular / animation : before:

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

      

after

    "@angular/animations": "4.1.3",

      



then delete the node_modules folder and run

npm install

      

If it doesn't work try following the release guidelines https://github.com/angular/angular/issues/17400

I had the same problem and after some problems it worked.

+7


source







All Articles