Unexpected value 'undefined' declared by the module 'AppModule'

前端 未结 14 1824
庸人自扰
庸人自扰 2021-02-03 16:53

What is wrong here? I\'m trying to make it work but I get that error in the header. I have included the in the app

14条回答
  •  独厮守ぢ
    2021-02-03 17:27

    Experienced this with Angular 2 and it turns out it has something to do with imports and relative paths, if you're exporting something in from the same location

    For instance when using barrels, explicitly specify the ./

    export * from './create-profile.component';
    

    instead of

    export * from 'create-profile.component';
    

提交回复
热议问题