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

前端 未结 14 1786
庸人自扰
庸人自扰 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:13

    In my case it was due to build issue. may be you have added some components or other things in your App module and forgot to rebuild it. So in the browser Angular is not able to recognize your fresh entries in app module because build is required to register them properly. So for development mode kill the current server and use ng serve.

提交回复
热议问题