Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Found the synthetic property @panelState. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.'

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.

Screenshot of error

How can I fix this? What exactly is the error message telling me?

like image 611
Aravind Avatar asked Apr 05 '17 20:04

Aravind


People also ask

What is BrowserAnimationsModule in angular?

BrowserAnimationsModulelinkExports BrowserModule with additional dependency-injection providers for use with animations.

What is NoopAnimationsModule?

NoopAnimationsModulelinkA null player that must be imported to allow disabling of animations.


1 Answers

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   ],   ... }) 
like image 99
Ploppy Avatar answered Oct 23 '22 15:10

Ploppy