I am very new to firebase firestore. And this is my first project with firestore. I installed angular fire with this command
npm install firebase @angular/fire --save
and now importing the angularfiremodule like this
import { AngularFireModule } from '@angular/fire';
and angularfirestoremodule like this
import { AngularFirestoreModule } from '@angular/fire/firestore';
But this is giving me error
Cannot find module '@angular/fire'.ts(2307)
Any idea what might be the error? I tried google searching but since I am new to firebase, everything seems very mixed up to me. Also, I'm using ionic version 4, Angular version 8.1.3 and node version 10.16.3 if that makes any difference.
Angularfire2 was working fine previously, but since it's deprecated, I want to move to angular/fire.
I solved the problem by using below import statement, in app.module.ts
import { AngularFirestoreModule } from '@angular/fire/compat/firestore/';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With