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

后端 未结 3 955
一生所求
一生所求 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:20

    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';
    

提交回复
热议问题