devyumao / angular2-busy

Show busy/loading indicators on any promise, or on any Observable's subscription.
http://devyumao.github.io/angular2-busy/demo/asset/
MIT License
314 stars 102 forks source link

Cannot find module '@angular/platform-browser/animations'.) #59

Open NikhilRadadiya opened 7 years ago

NikhilRadadiya commented 7 years ago

Hello @devyumao , I'm trying to use it with angular 2.4.0. Updated animations to @angular/animations": "^4.1.3. but it still gives this error

Cannot find module '@angular/platform-browser/animations'.)

can you please help? will it work with 2.4.0 version?

tomerpeled commented 7 years ago

Also encountered with this issue, any solution?

NikhilRadadiya commented 7 years ago

No

tomerpeled commented 7 years ago

Well, I succeed to solve it.

You should use angular2-busy "1.0.2" version and it's dependencies:

"angular2-busy": "1.0.2", "ts-metadata-helper": "0.0.3", "angular2-dynamic-component": "0.0.50"

ghost commented 7 years ago

It's because angular 4 doesn't ship with @angular/animations by default. Just run npm install --save @angular/animations and try again

graham-sportsmgmt commented 7 years ago

I just encountered this too - the docs should probably be updated to include the command mentioned by PatilSuraj..