I\'m getting this error after migrating to NgModule, the error doesn\'t help too much, any advice please?
Error: Error: Unexpected value \'undefined\' import
I had this issue, it is true that the error on the console ain't descriptive. But if you look at the angular-cli output:
You will see a WARNING, pointing to the circular dependency
WARNING in Circular dependency detected:
module1 -> module2
module2 -> module1
So the solution is to remove one import from one of the Modules.