Hello, I am currently attempting to utilize firebase.auth() as the parameter for useAuthState in TypeScript, but I keep encountering an error. Just a heads up, I'm fairly new to this so any assistance would be greatly appreciated.
The error message I'm receiving states: Type 'Auth' is missing the following properties from type 'Auth': beforeAuthStateChanged, authStateReadyts(2345)
import firebase from "firebase/compat/app";
import "firebase/auth";
import { useAuthState } from "react-firebase-hooks/auth";
const auth = firebase.auth();
const [user] = useAuthState(auth);
"firebase": "^10.7.2",
"react-firebase-hooks": "^5.1.1"
I've tried looking up the error on Google, but unfortunately, haven't found anything useful yet. Any guidance or suggestions would be most welcomed. Thank you!