我在 github 中有一个 repo,你可以在这里看到,我正在尝试启用 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
重现步骤:
- 克隆 repo:https ://github.com/Ismaestro/angular8-example-app.git 。
在这个文件中 tsconfig.browser.ts像这样启用 Ivy:
"angularCompilerOptions": { "enableIvy": true }
跑:
npm i npm start
我不知道该怎么办... :D
谢谢!!
伊斯玛