-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
The following error is encountered in angular 20.
RuntimeError: NG05105: Unexpected synthetic property @animationState found. Please make sure that:
- Make sure `provideAnimationsAsync()`, `provideAnimations()` or `provideNoopAnimations()` call was added to a list of providers used to bootstrap an application.
- There is a corresponding animation configuration named `@animationState` defined in the `animations` field of the `@Component` decorator
The issue can be resolved by adding the deprecated provideAnimations:
// app.config.ts
import { ApplicationConfig } from '@angular/core';
import { provideAnimations } from '@angular/platform-browser/animations';
export const appConfig: ApplicationConfig = {
providers: [
provideAnimations(),
// ... other providers
]
};
Any recommendation or advise on alternative to using the deprecated provideAnimations?
eliotis
Metadata
Metadata
Assignees
Labels
No labels