Firebase: Firebase App named '[DEFAULT]' already exists
if (!firebase.apps.length) {
firebase.initializeApp({});
}else {
firebase.app(); // if already initialized, use that one
}
Firebase: Firebase App named '[DEFAULT]' already exists
if (!firebase.apps.length) {
firebase.initializeApp({});
}else {
firebase.app(); // if already initialized, use that one
}
firebase app named default already exists react native
if (!firebase.apps.length) {
firebase.initializeApp({});
}
firebaseError: Firebase: Firebase App named '[DEFAULT'] already exists (app/duplicate-app).
// Config file
import * as firebase from "firebase";
const config = {...};
export default !firebase.apps.length ? firebase.initializeApp(config) : firebase.app();
// Other file
import firebase from '../firebase';
...
console.log(firebase.name);
console.log(firebase.database());
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us