-
Notifications
You must be signed in to change notification settings - Fork 40
Angular CLI build prod optimizer got error. #178
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
Comments
Same issue for me as well - NullInjectorError: No provider for class{}! My local environment:
|
Same issue for me as well - StaticInjectorError[i]. |
I had this problem and it drove me nuts... i finally figured it out... by turning off
Hope this helps someone... i guess the problem is that uglify removes default options-object? But couldn't verify... would explain why it only breaks on build... |
@FloNeu Thank you so much, searched for hours! This solved my issue. |
Uncaught Error: StaticInjectorError[i]: StaticInjectorError[i]: NullInjectorError: No provider for
i!``The app work correctly when 'serve' or 'build' but got error 'StaticInjectorError' when build prod optimizer.
The text was updated successfully, but these errors were encountered: