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

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

    This is similar to the answer suggesting re-running ng serve, but that wasn't relevant for my situation as I have the app permanently running in IIS. In my case, I had built with ng build --watch, but stopping that and re-running it fixed the problem. I assume something was built incorrectly when it was an incremental build, but doing the full build fixed the problem.

提交回复
热议问题