I had the same problem. I was able to solve this:
ng serve -aot
. I was able to find out what the missing class is because it launches AOT without running minify / uglify.- As soon as I did this, I was able to look at the error context to find out which component was having problems.
- Go to the component in question and start deleting links in the constructor (where dependency resolution occurs.
In my case, I had a problem using the Logger class in the angular2 -logger / core module. As soon as I removed the link from the compiler of the constructor and the reader, it worked like a charm. Then I tested with ng serve -prod
to confirm that this was also fixed.
One thing that I discovered was that I had to explicitly kill the Angular CLI and rebuild. For some reason, when I changed one line and saved it, she said that it was recompiled and still broken. Only when I killed him and ran the team again did I realize that this was really fixed.
source share