Fixed issue of Angular 16 --> @Angular/fire 7 --> firbase
- Error : node_modules/@angular/fire/compat/firestore/interfaces.d.ts:29:33
place of error is app.module.ts : The problem is in importation "AngularFirestoreModule" from @angular/fire/compat/firestore , As for the rest, it works
import { AngularFireModule } from '@angular/fire/compat';
import { AngularFireAuthModule } from '@angular/fire/compat/auth';
import { AngularFireStorageModule } from '@angular/fire/compat/storage';
import { AngularFirestoreModule } from '@angular/fire/compat/firestore' ; <--
-
the solution : Change the Module name to " FirestoreModule " and change the path to " @angular/fire/firestore "
import { FirestoreModule } from '@angular/fire/firestore' -
and
imports: [
. . .
AngularFireModule.initializeApp(environment.firebase),
AngularFireAuthModule,
AngularFireStorageModule,
FirestoreModule, <--
. . . ] ;
- Versions Informations
"firebase": "10.4.0",
"@angular/fire": "7.6.1",
angular : 16.2.1
node js 16.2.1
- Note: Do not edit the file interfaces.d.ts
This issue does not seem to follow the issue template. Make sure you provide all the required information.
Thanks for sharing this workaround. This addresses the AngularFire 7.6.1 with firebase 10 compat interface errors that were resolved by the rxfire 6.0.5 fix and by AngularFire 16+ supporting firebase 10. Since there is no open request here and those versions are long obsolete, I am closing this. Thanks again for helping others who hit the same error.