I upgraded an Angular 4 project using angular-seed and now get the error
Found the synthetic property @panelState. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.
How can I fix this? What exactly is the error message telling me?
BrowserAnimationsModulelinkExports BrowserModule with additional dependency-injection providers for use with animations.
NoopAnimationsModulelinkA null player that must be imported to allow disabling of animations.
Make sure the @angular/animations
package is installed (e.g. by running npm install @angular/animations
). Then, in your app.module.ts
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; @NgModule({ ..., imports: [ ..., BrowserAnimationsModule ], ... })
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With