IM trying to signup an email auth using firebase and Expo but it says an error [2023-06-27T23:36:31.891Z] @firebase/app: Firebase: Error thrown when reading from IndexedDB. Original error: (0 , _idb.openDB) is not a function. (app/idb-get). here is code
const handleSignUp = () => {
createUserWithEmailAndPassword(auth, email, password)
.then((userCredential) => {
// Signed in
const user = userCredential.user;
// ...
})
.catch((error) => {
const errorCode = error.code;
const errorMessage = error.message;
// ..
});}
there is a redd line under auth says Argument of type '{ auth: Auth; app: FirebaseApp; }' is not assignable to parameter of type 'Auth'. Type '{ auth: Auth; app: FirebaseApp; }' is missing the following properties from type 'Auth': name, config, setPersistence, languageCode, and 10 more here is my firebase.js
import { initializeApp } from 'firebase/app';
import { getAnalytics } from "firebase/analytics";
import { getAuth } from "firebase/auth";
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
**
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const auth = getAuth(app);
const analytics = getAnalytics(app);
export default { auth ,app};
re-installing packages