I recently upgraded Firebase to 10.12.4 and now have this error which isn’t allowing me to compile.
import firebase from 'firebase/compat/app';
import "firebase/compat/auth";
import "firebase/compat/database";
import "firebase/compat/firestore";
import "firebase/compat/storage";
const firebaseConfig = {
apiKey: "xxx",
authDomain: "xxx",
databaseURL: "xxx",
projectId: "xxx",
storageBucket: "xxx",
messagingSenderId: "xxx",
appId: "xxx",
measurementId: "xxx",
};
firebase.initializeApp(firebaseConfig);
firebase.firestore().settings({ experimentalForceLongPolling: false, cacheSizeBytes: firebase.firestore.CACHE_SIZE_UNLIMITED, merge: true });
export const storage = firebase.storage();
export default firebase;
This has worked with no problems in the past – but am wondering why it now throwing this error, and how to fix it?