我在github中有一个仓库,您可以看到here,我正在尝试启用Ivy,但还没有运气。
显示的错误是:
COM Port Number
复制步骤:
在此文件 tsconfig.browser.ts 中启用Ivy,如下所示:
ERROR in src/app/shared/modules/firebase.module.ts(7,12): error TS-991010: Value at position 0 in the NgModule.importss of FirebaseModule is not a reference: [object Object]
node_modules/@ismaestro/ngx-scroll-to-first-invalid/ngx-scroll-to-first-invalid.module.d.ts(1,22): error TS-996002: Appears in the NgModule.imports of SharedModule, but could not be resolved to an NgModule class
node_modules/@ismaestro/ngx-scroll-to-first-invalid/ngx-scroll-to-first-invalid.module.d.ts(1,22): error TS-996003: Appears in the NgModule.exports of SharedModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class
src/app/shared/shared.module.ts(58,14): error TS-996002: Appears in the NgModule.imports of HeroesModule, but itself has errors
src/app/shared/modules/firebase.module.ts(18,14): error TS-996002: Appears in the NgModule.imports of AppBrowserModule, but could not be resolved to an NgModule class
src/app/shared/shared.module.ts(58,14): error TS-996002: Appears in the NgModule.imports of AppBrowserModule, but itself has errors
src/app/app.browser.module.ts(71,14): error TS-996002: Appears in the NgModule.imports of AppServerModule, but itself has errors
运行:
"angularCompilerOptions": {
"enableIvy": true
}
我不知道该怎么办...:D
谢谢!
Isma
答案 0 :(得分:0)
将核心的程序包依赖性升级到@next(8.2.0-next.0)可以解决此问题。
答案 1 :(得分:0)
我遇到了同样的问题,这可能是由于某些第三方库不遵守Angular Library Format规范而没有使用一些自定义的webpack配置来编译其库。在我的情况下是@ auth0 / angular-jwt,我提出了一个PR来解决此问题,目前还没有合并(https://github.com/auth0/angular2-jwt/pull/622)
由您决定哪个部门不遵守角度lib规范。