javascript-Firebase问题-Uncaught类型错误:firebaseApp.firestore不是一个功能
发布时间:2022-03-02 05:32:54 242
相关标签: # 前端
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
const firebaseConfig = {
apiKey: "AIzaSyAo_xPpbeKIbY_t90ZlXx-glsgQQnoWW6w",
authDomain: "clone-6ba21.firebaseapp.com",
projectId: "clone-6ba21",
storageBucket: "clone-6ba21.appspot.com",
messagingSenderId: "936299750326",
appId: "1:936299750326:web:751ef8cc4679412c919717",
measurementId: "G-N2154NWV83",
};
const firebaseApp = firebase.initializeApp(firebaseConfig);
const db = firebaseApp.firestore();
const auth = firebase.auth();
export { db, auth };
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报