Answers for "Module '"@angular/fire/firestore"' has no exported member 'AngularFirestore'"

-1

Module '"@angular/fire/messaging"' has no exported member 'AngularFireMessaging'

Check the versions compatibility illustrated here:
https://www.npmjs.com/package/@angular/fire
Posted by: Guest on September-08-2021
0

Module '"@angular/fire/firestore"' has no exported member 'AngularFirestore'

//Angular changed the syntax, the new import should be:
import { Firestore,
       collectionData, collection} from '@angular/fire/firestore';

//You should also change the construction:
item$: Observable<Item[]>;
  constructor(firestore: Firestore) {
    const collection = collection(firestore, 'items');
    this.item$ = collectionData(collection);
}
//Check the GitHub repo in the source for more details
Posted by: Guest on January-18-2022

Code answers related to "Module '"@angular/fire/firestore"' has no exported member 'AngularFirestore'"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language