Open1
Angular17について調べたこと
下のエラーが出てBrowserAnimationsModule
を使用したいとき
main.ts:5 ERROR Error: NG05105: Unexpected synthetic property @animationState found. Please make sure that:
- Either `BrowserAnimationsModule` or `NoopAnimationsModule` are imported in your application.
- There is corresponding configuration for the animation named `@animationState` defined in the `animations` field of the `@Component` decorator (see https://angular.io/api/core/Component#animations).
ApplicationConfigのprovidersにprovideAnimationsAsync()を追加する。