文章内容

2020/5/14 18:55:11,作 者: 黄兵

Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

今天在使用in-memory-web-api的时候报如下错误:

Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

具体截图如下:


之后再github找到了答案,具体解决方案如下:

My temporary solution was to add:
"enableIvy": false,

"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"enableIvy": false, <---
"strictInjectionParameters": true
}

from my file tsconfig.json


参考资料:

1、Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

分享到:

发表评论

评论列表