Unexpected value 'DecoratorFactory' imported by the module 'TempModule'

后端 未结 3 969
一生所求
一生所求 2021-01-04 02:53

In my sample application I have written a feature module \"TempModule\" and below is the code.

import { NgModule } from \'@angular/core\';
import { CommonMod         


        
3条回答
  •  春和景丽
    2021-01-04 03:18

    You're trying to import decorator in imports array. It should contain only modules

    @NgModule({
      declarations: [ TempOneComponent,
                    TempTwoComponent],
      imports: [ NgModule, <== why is it here???
               CommonModule,
               tempRouting]
    }) 
    export class TempModule {}
    

提交回复
热议问题