Firebase Cloud Firestore throws “client is offline”

前端 未结 8 1563
栀梦
栀梦 2020-12-11 15:14

About 3 out of 4 times loading the page I get this error from the firestore client SDK (web). This slows development down tremendously. Auth, Realtime DB and Storage work pe

8条回答
  •  误落风尘
    2020-12-11 15:54

    I had some problem. but I've just fixed it. check your projectId is correct. when you use cloud firestore, you need it.

    export const environment = {
      production: false,
      firebaseConfig: {
        apiKey: 'XYZ',
        authDomain: 'XYZ.firebaseapp.com',
        databaseURL: 'https://XYZ.firebaseio.com',
        storageBucket: 'XYZ.appspot.com',
        projectId: 'XYZ' // <--- make sure project ID is here 
      }
    };
    

提交回复
热议问题