Error: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp()

no firebase app '(default)' has been created react-native
no firebase app '(default)' has been created react native
no firebase app has been created ios
firebase initializeapp
no firebase.app.app instance is currently initialized.
@react-native-firebase/app
firebase web app example
react-native firebase initializeapp

I have a firebase database linked up to two apps, one being an iOS app and another being a web app coded in node.js which is a basic algorithm that sets data to the database. When ever i am running the algorithm i am confronted with-

Error: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp(). at Error (native) at R (/Users/dd/Desktop/Code/NODE/node_modules/firebase/app-node.js:22:335) at a (/Users/dd/Desktop/Code/NODE/node_modules/firebase/app-node.js:20:68) at Object.c [as database] (/Users/dd/Desktop/Code/NODE/node_modules/firebase/app-node.js:21:447) at Object. (/Users/dd/Desktop/Code/NODE/Bot.js:24:25) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3 dd-mac:NODE dd$

Could someone please help?


You are probably invoking firebase before the app is initialized. All calls to firebase. must come after .initializeApp();

firebase.initializeApp(config);
var db = firebase.firestore();

Firebase: No Firebase App '[DEFAULT]' has been created (Firestore , 0 and adding trying to use within my components, I get the following error: Unhandled JS Exception: Firebase: No Firebase App '[DEFAULT]' has� I get the following error: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp(). This of course indicates that the firebase connection hasn't been initialised, however I am able access data through the angularfire2 api, so I don't know why this would fail my package.json:


Complete tutorial source link

Use initializeApp before @NgModule

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';

import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';

import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { environment } from 'src/environments/environment';
import { AuthenticateService } from './services/authentication.service';
import { AngularFireAuthModule } from '@angular/fire/auth';

import * as firebase from 'firebase';

firebase.initializeApp(environment.firebase);

@NgModule({
  declarations: [AppComponent],
  entryComponents: [],
  imports: [
    BrowserModule, 
    IonicModule.forRoot(), 
    AppRoutingModule,
    AngularFireAuthModule
  ],
  providers: [
    StatusBar,
    SplashScreen,
    AuthenticateService,
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

firebase.app.App, Optional name of the app to initialize. If no name is provided, the default is "[ DEFAULT]" . Returns App. The initialized app. Firebase can help you tackle demanding challenges, whether you’re a developer, marketer, or product manager. Our tools work together so that mobile teams can improve app performance while gaining valuable user insights.


I had a similar issue following Firebase's online guide found here.

The section heading "Initialize multiple apps" is misleading as the first example under this heading actually demonstrates how to initialize a single, default app. Here's said example:

// Initialize the default app
var defaultApp = admin.initializeApp(defaultAppConfig);

console.log(defaultApp.name);  // "[DEFAULT]"

// Retrieve services via the defaultApp variable...
var defaultAuth = defaultApp.auth();
var defaultDatabase = defaultApp.database();

// ... or use the equivalent shorthand notation
defaultAuth = admin.auth();
defaultDatabase = admin.database();

If you are migrating from the previous 2.x SDK you will have to update the way you access the database as shown above, or you will get the, No Firebase App '[DEFAULT]' error.

Google has better documentation at the following:

  1. INITIALIZE: https://firebase.google.com/docs/database/admin/start

  2. SAVE: https://firebase.google.com/docs/database/admin/save-data

  3. RETRIEVE: https://firebase.google.com/docs/database/admin/retrieve-data

firebase | JavaScript SDK, Anyone has experience this error? When I tried to login with firebase auth with email & password. Firebase: No Firebase App '[DEFAULT]' has� If no apps found we need to add a web(</>) app as mentioned below to access the firebase services. after adding app we can find its config object. The sample format of that firebase object is


This may not be best answer but, I had to initialize app with admin and firebase like below. I use admin for it's own purposes and firebase as well.

const firebase = require("firebase");
const admin = require("firebase-admin");

admin.initializeApp(functions.config().firebase);
firebase.initializeApp(functions.config().firebase);
// Get the Auth service for the default app
var authService = firebase.auth();

 function createUserWithEmailAndPassword(request, response) {
        const email = request.query.email;
        const password = request.query.password;
        if (!email) {
            response.send("query.email is required.");
            return;
        }
        if (!password) {
            response.send("query.password is required.");
            return;
        }
        return authService.createUserWithEmailAndPassword(email, password)
            .then(success => {
                let responseJson = JSON.stringify(success);
                console.log("createUserWithEmailAndPassword.responseJson", responseJson);
                response.send(responseJson);
            })
            .catch(error => {
                let errorJson = JSON.stringify(error);
                console.log("createUserWithEmailAndPassword.errorJson", errorJson);
                response.send(errorJson);
            });
    }

Firebase: No Firebase App '[DEFAULT]' has been created Error , but I am getting this error: [DEFAULT]: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app) By the way,� Possible solutions. Wait. Sometimes it just takes time to load everything. Check the firebase.json file to see if the “public” property is “build” because the content of your app is in the


My problem was because I added a second parameter:

AngularFireModule.initializeApp(firebaseConfig, 'reservas')

if I remove the second parameter it works fine:

AngularFireModule.initializeApp(firebaseConfig)

Firebase No Firebase App [DEFAULT] - node.js - html, Uncaught Error: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp().(…) I know for a fact that my app is connected to my firebase� Before we begin coding, we need to set up some things for our app to work. Firstly, we need to create a new React app. You can easily do that using create-react-app: npx create-react-app firebase-auth-app. Now that we have done that, we need to set up Tailwind CSS to work with React.


Firebase Auth Fails (Firebase app didn't created)[SOLVED], firebase.auth().currentUser.updateProfile({}) I get the following error: No Firebase App '[DEFAULT]' has been created� After that, we will get deep into how to use the app inventor to read data from firebase. We will also see, MIT app inventor logic to update the database using an app. How to use firebase with MIT app inventor 2. Integrating firebase with app inventor is straightforward and it can be done in 3 simple steps. 1. Create real-time database


No Firebase App '[DEFAULT]' has been created, Secondary Apps. Unlike the Firebase Web SDK, there is no need to manually call the initializeApp method with your project credentials. The native Android� Cool, I'll try the v6 script to make a demo app. I'm upgrading from a 0.59.x react-native project with rnfirebase 5.3.1 to react-native 0.61.5 and rnfirebase 6.3.0. The iOS upgrade process was about an hour.


Core/App, You are probably calling firebase before the application is initialized. All firebase. calls firebase. should appear after .initializeApp(); firebase. Overview; auth:import and auth:export; Firebase Realtime Database Operation Types; Deploy Targets; Cloud Firestore Index Definition Format