【发布时间】:2020-10-16 20:01:17
【问题描述】:
我已将我的应用程序更新到 Angular 9。当我禁用 ivy 时,我能够运行该应用程序。但是当我启用常春藤得到错误error NG6002:
错误日志 -
32 export class FooterModule { }
~~~~~~~~~~~~
src/app/core/ncpapp.core.module.ts:30:14 - error NG6002: Appears in the NgModule.imports of
ScreenEditorModule, but itself has errors
30 export class CoreModule {
~~~~~~~~~~
src/app/core/ncp-forms/ncp.forms.module.ts:19:14 - error NG6002: Appears in the NgModule.imports of
ScreenEditorModule, but itself has errors
19 export class NCPFormModule { }
~~~~~~~~~~~~~
node_modules/ngx-jsoneditor/jsoneditor.module.d.ts:[93m5:22 - error NG6002: Appears in the
NgModule.imports of ScreenEditorModule, but could not be resolved to an NgModule class.
This likely means that the library (ngx-jsoneditor) which declares JSONEditorModule has not been
processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the
library is available, and update if so. Also consider checking with the library's authors to see if
the library is expected to be compatible with Ivy.
我尝试卸载库ngx-jsoneditor 并重新安装,但仍然遇到同样的问题。
我做了npm cache clean --force和npm install,但结果是一样的。
我有什么遗漏吗?
【问题讨论】:
标签: angular npm ivy angular9 renderer