New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include the injector name in error: Trying to get the Angular injector before bootstrapping the corresponding Angular module #37579
Comments
Is this failing for a downgraded injectable (or are there more usecases where this can break)? From a quick look, I think this error will only be thrown when trying to inject a downgraded injectable (without having loaded the corresponding module). If that's the case, we could add a |
I'm not sure @gkalpak, this use to happen when trying to use an upgraded service in an AngularJS directive/component/controller/service. I think that is what are you meaning, right? |
Oh, that's different. Can you show an example of the failure? |
This commit improves the error thrown by the downgrade module with a more descriptive message on why the downgrade is failing. Closes angular#37579
This commit improves the error thrown by the downgrade module with a more descriptive message on why the downgrade is failing. Closes angular#37579
This commit improves the error thrown by the downgrade module with a more descriptive message on why the downgrade is failing. Closes angular#37579
This commit improves the error thrown by the downgrade module with a more descriptive message on why the downgrade is failing. Closes angular#37579
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🚀 feature request
Relevant Package
This feature request is for @angular/upgradeDescription
In the project I'm working we are migrating AngularJS to Angular 2+ and we face this error often:
Trying to get the Angular injector before bootstrapping the corresponding Angular module.
It would be very helpful to include the injector name in the error message, it would save a lot of time instead of search each injector until finding the one which is throwing this error.Describe the solution you'd like
Trying to get the Angular injector before bootstrapping the corresponding 'Angular module. Injector name: SomeAngularService.
The text was updated successfully, but these errors were encountered: