-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
19.0.3
Description
I use provideAnimationsAsync(), and with the the latest 19.0.4, the app breaks with Circular dependency in DI detected error... If I switch to using provideAnimations() it works fine...
Reproduction
Run/debug project with angular 19.0.5, angular-cli 19.0.6 and cdk/material 19.0.4, while using provideAnimationsAsync()
Expected Behavior
Works as in 19.0.3
Actual Behavior
Errors with:
at throwCyclicDependencyError (core.mjs:969:9)
at R3Injector.hydrate (core.mjs:2277:9)
at R3Injector.get (core.mjs:2160:23)
at injectInjectorOnly (core.mjs:1100:36)
at ɵɵinject (core.mjs:1106:40)
at inject (core.mjs:1191:10)
at <instance_members_initializer> (async.mjs:19:15)
at new _AsyncAnimationRendererFactory (async.mjs:30:3)
at Object.useFactory (async.mjs:285:14)
at Object.factory (core.mjs:2377:32)
Environment
nx 20.2.2
angular 19.0.5
angular cli 19.0.6
cdk/material 19.0.4