Skip to content

refactor(core): throw an Cyclic Dependency Error in prod mode#60118

Closed
JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche:core/throw-cyclic-prod
Closed

refactor(core): throw an Cyclic Dependency Error in prod mode#60118
JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche:core/throw-cyclic-prod

Conversation

@JeanMeche
Copy link
Copy Markdown
Member

Prior to this change, cyclic injection didn't trigger any error in prod mode, resulting into injecting the CIRCULAR object. This could lead to strange errors where no method would be found on the token.

fixes #60074

@pullapprove pullapprove bot requested a review from thePunderWoman February 26, 2025 16:33
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Feb 26, 2025
@ngbot ngbot bot added this to the Backlog milestone Feb 26, 2025
Copy link
Copy Markdown
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to worry about spherical dependencies? ;)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about if the graph is a tesseract ? 😆

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I guess we'll have to tesser-act fast!

Prior to this change, cyclic injection didn't trigger any error in prod mode, resulting into injecting the `CIRCULAR` object.
This could lead to strange errors where no method would be found on the token.

fixes angular#60074
@JeanMeche JeanMeche force-pushed the core/throw-cyclic-prod branch from 035aede to a7f0c19 Compare February 26, 2025 17:31
@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Mar 3, 2025
@mmalerba
Copy link
Copy Markdown
Contributor

mmalerba commented Mar 4, 2025

This PR was merged into the repository by commit 4aeec9f.

The changes were merged into the following branches: main, 19.2.x

@mmalerba mmalerba closed this in 4aeec9f Mar 4, 2025
mmalerba pushed a commit that referenced this pull request Mar 4, 2025
Prior to this change, cyclic injection didn't trigger any error in prod mode, resulting into injecting the `CIRCULAR` object.
This could lead to strange errors where no method would be found on the token.

fixes #60074

PR Close #60118
@angular-automatic-lock-bot
Copy link
Copy Markdown

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

this.scheduler.notify is not a function

3 participants