Cannot find module angular/animations

Perform below steps to make it work:

  1. npm install @angular/animations@latest –save

  2. import “BrowserAnimationsModule” from “@angular/platform-browser/animations” in your root NgModule (Without this, your code will compile and run, but animations will trigger an error)

  3. In your component use imports from the new package like this – ” import { trigger, state, style, transition, animate } from ‘@angular/animations’; “

This worked for me.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)