Skip to content

fix(core): handle ChainedInjectors in injector debug utils#55144

Closed
AndrewKushnir wants to merge 2 commits intoangular:mainfrom
AndrewKushnir:defer_injector_debug_utils
Closed

fix(core): handle ChainedInjectors in injector debug utils#55144
AndrewKushnir wants to merge 2 commits intoangular:mainfrom
AndrewKushnir:defer_injector_debug_utils

Conversation

@AndrewKushnir
Copy link
Contributor

The fix from PR #55079 introduced a configuration of the injector chain, which wasn't properly handled by the injector debug utils, thus resulting in JS exceptions in DevTools. This commit updates injector debug utils logic that calculates injector resolution path to also handle ChainedInjectors.

Resolves #55137.

PR Type

What kind of change does this PR introduce?

  • Bugfix

Does this PR introduce a breaking change?

  • Yes
  • No

The fix from PR angular#55079 introduced a configuration of the injector chain, which wasn't properly handled by the injector debug utils, thus resulting in JS exceptions in DevTools. This commit updates injector debug utils logic that calculates injector resolution path to also handle `ChainedInjector`s.

Resolves angular#55137.
@AndrewKushnir AndrewKushnir added action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release core: debug tools labels Apr 1, 2024
@AndrewKushnir AndrewKushnir requested a review from alxhub April 1, 2024 05:11
@ngbot ngbot bot added this to the Backlog milestone Apr 1, 2024
* found in the LICENSE file at https://angular.io/license
*/

import {ENVIRONMENT_INITIALIZER} from '../../di/initializer_token';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note for reviewers: there were no changes to the imports, the order has changed as a result of running yarn lint.

@AndrewKushnir
Copy link
Contributor Author

Presubmit.

@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Apr 3, 2024
@AndrewKushnir
Copy link
Contributor Author

Caretaker note: the presubmit is "green", this PR is ready for merge.

@jessicajaniuk
Copy link
Contributor

This PR was merged into the repository by commit 231e0a3.

jessicajaniuk pushed a commit that referenced this pull request Apr 3, 2024
The fix from PR #55079 introduced a configuration of the injector chain, which wasn't properly handled by the injector debug utils, thus resulting in JS exceptions in DevTools. This commit updates injector debug utils logic that calculates injector resolution path to also handle `ChainedInjector`s.

Resolves #55137.

PR Close #55144
@angular-automatic-lock-bot
Copy link

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 May 4, 2024
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 core: debug tools merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uncaught Error: ASSERTION ERROR: NodeInjector must have some connection to the module injector tree

4 participants