Error: Unexpected value 'undefined' imported by the module

前端 未结 30 1882
礼貌的吻别
礼貌的吻别 2020-12-01 03:51

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         


        
30条回答
  •  青春惊慌失措
    2020-12-01 04:42

    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.

提交回复
热议问题