patterntypescriptangularCriticalCanonical
'Found the synthetic property @panelState. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.'
Viewed 0 times
panelstatepropertyeitherbrowseranimationsmodulefoundyoursyntheticnoopanimationsmoduletheplease
Problem
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?
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?
Solution
Make sure the
@angular/animations package is installed (e.g. by running npm install @angular/animations). Then, in your app.module.tsimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@NgModule({
...,
imports: [
...,
BrowserAnimationsModule
],
...
})Code Snippets
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@NgModule({
...,
imports: [
...,
BrowserAnimationsModule
],
...
})Context
Stack Overflow Q#43241193, score: 351
Revisions (0)
No revisions yet.