错误NG6002:出现在AppModule的NgModule.imports中,但无法解析为NgModule类。 (导出声明类AngularFirestore {)

时间:2020-10-04 16:31:14

标签: angularjs firebase firebase-authentication

我面临Angular和Firebase设置的问题。

**时间:555ms

./src/app/app.module.ts中的

错误 找不到模块:错误:无法解析'C:\ Users \ pavi9003 \ Desktop \ AI&ML \ qatarAI \ aidemo \ src \ app'中的'@ angular / fire / firebase.app.module'

ERROR in node_modules/@angular/fire/firestore/firestore.d.ts:85:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

This likely means that the library (@angular/fire/firestore) which declares AngularFirestore 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.

85 export declare class AngularFirestore {
                        ~~~~~~~~~~~~~~~~


ERROR in node_modules/@angular/fire/firestore/firestore.d.ts:85:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.

This likely means that the library (@angular/fire/firestore) which declares AngularFirestore 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.

85 export declare class AngularFirestore {
                        ~~~~~~~~~~~~~~~~**

Angular CLI and Ivy Config

0 个答案:

没有答案