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

前端 未结 14 2011
庸人自扰
庸人自扰 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条回答
  •  萌比男神i
    2021-02-03 17:17

    I faced the same error and I discovered the reason. The reason was two commas ,, in any array (for example: imports property) like this.

    @NgModule({
      imports: [
      CommonModule, FormsModule,,
    ]})
    

提交回复
热议问题