Firebase: Firebase App named '[DEFAULT]' already exists (app/duplicate-app). ionic react code example
Example: Firebase: Firebase App named '[DEFAULT]' already exists
if (!firebase.apps.length) {
firebase.initializeApp({});
}
if (!firebase.apps.length) {
firebase.initializeApp({});
}