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

后端 未结 9 679
慢半拍i
慢半拍i 2020-12-01 15:55

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

9条回答
  •  天命终不由人
    2020-12-01 15:57

    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();
    

提交回复
热议问题