Closed lizhihui0215 closed 6 years ago
Hello @lizhihui0215, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
ERROR Error: Uncaught (in promise): Error: StaticInjectorError(r)[t -> t]:```
OS:
macOS High Sierra 10.13.4 (17E199)
Versions
node v8.11.2 npm 5.6.0
The log given by the failure.
If I run "ng build", the application works just fine. However, if I use "ng build --prod", I get a series of cryptic errors in the browser log.
After I read the documentation, found that --prod flag will the below thing.
After that I'am exchange the 'ng serve' to ‘ng serve --aot’ then give me the error below