-
Notifications
You must be signed in to change notification settings - Fork 336
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
Uncaught Error: [$injector:unpr] Unknown provider: aProvider #37
Comments
What version of the generator are you on? Run |
Let me guess - you use "ui-sref-active" ? if so, it's an old ui-router minification bug. |
No response from @niiamon in over a month. Feel free to re-open a new issue if this problem persists. |
Apologies. Should have sent in a response regarding what I found. The issue was with code minification. I was using the wrong syntax to enable code minification to be done successfully. Using syntax such as:
instead of
fixed my problem. |
Gracias, @niiamon 👍 |
When I build with grunt, everything builds properly but when I try to run the generated code, the page fails to load and all I see is a white screen.
I noticed that there's this error in the console:
Uncaught Error: [$injector:unpr] Unknown provider: aProvider <- a <- $http <- $templateFactory <- $view <- $state
That is most likely due to minification. The weird thing is that when I generate a project and I build without any modifications to the code, everything works well but in my real project which has all my code, it breaks.
What would be a good way to fix this?
The text was updated successfully, but these errors were encountered: