Проверьте, инициализируется ли Firebase
// In v9, Firebase has been modularized for better tree shaking
import { initializeApp, getApps, getApp } from "firebase/app";
getApps().length === 0 ? initializeApp(firebaseConfig) : getApp();
// Web
if (firebase.apps.length === 0) {
firebase.initializeApp({});
}
// Android
if (FirebaseApp.getApps(context).isEmpty()) {
FirebaseApp.initializeApp(context);
}
// Instrumented Test Environment
InstrumentationRegistry.getContext()
RealMyth21