“Please add a @NgModule annotation” Error on Angular2

后端 未结 4 564
慢半拍i
慢半拍i 2021-02-08 12:20

I have made a custom angular2(5.0.x) module that looks like this :

import { GuageService } from \'./services/guage.service\';
import { NgModule } from \'@angular         


        
4条回答
  •  别跟我提以往
    2021-02-08 12:58

    Please add "emitDecoratorMetadata": true in the compilerOptions of tsconfig.json of your gauge module

提交回复
热议问题