Circular dependency in DI detected for ChangeDetectionScheduler in 19.0.4 · Issue #59255 · angular/angular · GitHub
Skip to content

Circular dependency in DI detected for ChangeDetectionScheduler in 19.0.4 #59255

Closed

Description

@atsjo

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

Activity

  1. atsjo commented on Dec 20, 2024

    @atsjo
    Author

    assuming the cause is angular/components#30163

  2. self-assigned this
    on Dec 20, 2024
  3. added a commit that references this issue on Dec 20, 2024
    d0e75ff
  4. added this to the needsTriage milestone on Dec 20, 2024
  5. added a commit that references this issue on Dec 20, 2024
    f093b20
  6. added a commit that references this issue on Dec 21, 2024
    8c5db3c
  7. added a commit that references this issue on Dec 21, 2024
    dbb8980
  8. angular-automatic-lock-bot commented on Jan 20, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  9. locked and limited conversation to collaborators on Jan 20, 2025
  10. added a commit that references this issue on Feb 7, 2025
    ea74676
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

animations: asyncIssues related to async animation loadingarea: animationslegacy animations package only. Otherwise use area: core.bugstate: has PR

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions