Whenever I attempt to import '@angular/fire/firestore' into my project, an error pops up in the console immediately saying: Error: node_modules/rxfire/firestore/lite/interfaces.d.ts:8:29 - error TS2314: Generic type 'AggregateQuerySnapshot< T>' needs 1 type argument(s).
import { Injectable, inject } from '@angular/core';
import { AngularFireAuth } from '@angular/fire/compat/auth';
import { getAuth, signInWithEmailAndPassword,
createUserWithEmailAndPassword, updateProfile } from
'firebase/auth';
import { User } from '../models/user.model';
import { AngularFirestore } from '@angular/fire/compat/firestore';
import { getFirestore, setDoc, doc } from
'@angular/fire/firestore';
export class FirebaseService {
auth = inject(AngularFireAuth);
firestore = inject(AngularFirestore);
setDocument(path: string, data: any) {
return setDoc(doc(getFirestore(), path), data);
}
}
Error: node_modules/rxfire/firestore/lite/interfaces.d.ts:8:29 - error TS2314: Generic type 'AggregateQuerySnapshot<T>' requires 1 type argument(s).
[ng]
[ng] 8 export type CountSnapshot = lite.AggregateQuerySnapshot<{
[ng] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ng] 9 count: lite.AggregateField<number>;
[ng] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ng] 10 }, any, DocumentData>;
I am using firebase version 9.23.0 and @angular/fire version 7.6.1.