嘗試使用 Firebase Analytics 和 Cloud FireStore...我已將其提交到 FireStore,但我不確定為什么會(huì)收到此錯(cuò)誤:錯(cuò)誤index.ts:79 TypeError: Cannot read property 'INTERNAL' of undefined at index.ts:41 at index.ts:79 at firebase-analytics.js:1 at firebase-analytics.js:1(anonymous) @ index.ts:79(anonymous) @ firebase-analytics.js:1(anonymous) @ firebase-analytics.js:1index.ts:79 Uncaught Error: Cannot instantiate firebase-analytics.js - be sure to load firebase-app.js first. at index.ts:79 at firebase-analytics.js:1 at firebase-analytics.js:1Firebase 文件import firebase from 'firebase/app';import 'firebase/firestore';import 'firebase/analytics';const firebaseApp = firebase.initializeApp({ apiKey: 'XXXXXXXXXXXXXXXXXX', authDomain: 'XXXXXXXXXXXXXX', databaseURL: 'XXXXXXXXXXXXX', projectId: 'XXXXXXXXXXXXX', storageBucket: 'XXXXXXXXXXXXX', messagingSenderId: 'XXXXXXXXXXXXX', appId: 'XXXXXXXXXXXXX', measurementId: 'XXXXXXXXXXXXX',});export const db = firebaseApp.firestore();firebase.analytics();
ReactJs 中的 Firebase 錯(cuò)誤
婷婷同學(xué)_
2023-08-10 14:38:31