Angular 2 update to Angular 4 doesn't have exported 'AnimationDriver' member

I have updated Angular 2 to Angular 4. When I start my project I am facing the below error.

node_modules / @ angular / platform-browser / platform-browser "" does not have an exported 'AnimationDriver' member.

+3


source to share


4 answers


https://github.com/angular/angular/blob/master/CHANGELOG.md#400-rc1-2017-02-24

Animation package

We've put the animation in our own package. This means that if you're not using animation, this extra code won't end up in your production facilities. It also allows you to find documentation more easily and use autocomplete better. if you need animations, libraries like Material will automatically import the module (after installing it via NPM), or you can add it yourself to your main NgModule.

npm install @angular/animations@latest --save

      

@angular/animations/browser

      



import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

      

See also Plunker in

+5


source


Upgrade Guide:

https://github.com/angular/universal/blob/master/UPGRADE-GUIDE.md



angular-universal github page:

https://github.com/angular/universal

+2


source


Remove all dependencies and npm install (run in console in project folder) because this is a link to some other dependencies. which will hopefully work for you.

npm isntall
      

Run codeHide result


0


source


I solved this problem by running the following command:

npm install

      

-1


source







All Articles