I am new to angular and firestore database I first started working with Realtime Database but now I want to work with firestore so I wasn't able to find the imports of angular firestore so I run this command
ng add @angular/fire
npm install --save firebase @angular/fire
Also deleted package-lock.json
and re run the command like
npm-i
and also npm-update
tried to find the various solutions to remove the below error but didn't get success
The error is below which I get when I run the command ng serve
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.
also got this one
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.
Let me know if anyone has a better solution.
For the better understanding please head to this post