include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your a code example
Example: Please include either "BrowserAnimationsModule
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@NgModule({
...,
imports: [
...,
BrowserAnimationsModule
],
...
})