Unexpected value 'DecoratorFactory' imported by the module 'TempModule'
Another way you can see this error is by importing a module from the wrong place. For example:
import {CommonModule} from '@angular/core'; // wrong
should be:
import {CommonModule} from '@angular/common';
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 {}