Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upInclude 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? |
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.