Angular 8 Enable Ivy Error - значение в позиции 0 в NgModule.importss FirebaseModule не является ссылкой: [object Object]
У меня есть репозиторий в github, который вы можете увидеть здесь, и я пытаюсь включить 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
Действия по воспроизведению:
- Клонируйте репозиторий: https://github.com/Ismaestro/angular8-example-app.git.
В этом файле tsconfig.browser.ts включите Ivy следующим образом:
"angularCompilerOptions": { "enableIvy": true }
Бегать:
npm i npm start
Понятия не имею, что делать...:D
Спасибо!!
Isma
0 ответов
У меня была такая же проблема, это могло быть связано с тем, что некоторые сторонние библиотеки не соблюдали спецификации формата библиотеки Angular и компилировали свои библиотеки с некоторыми пользовательскими конфигурациями веб-пакетов. В моем случае это был @auth0/angular-jwt, я предложил PR, чтобы исправить это, которое в настоящее время не объединено (https://github.com/auth0/angular2-jwt/pull/622)
Вам решать, какое из ваших подразделений не соблюдает спецификацию angular lib.