You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this error while trying to modify the tutorial for my needs.
Here is my code
importReactfrom'react';import{FirebaseAppProvider,useFirestoreDocData,useFirestore,SuspenseWithPerf}from'reactfire'constfirebaseConfig={/* Add your config from the Firebase Console */apiKey: "x",// Auth / General UseappId: "x",// General UseprojectId: "x",// General UseauthDomain: "x",// Auth with popup/redirectdatabaseURL: "x",// Realtime Database//storageBucket: "x", // Storage//messagingSenderId: "x", // Cloud Messaging//measurementId: "x" // Analytics};functionPixFirebaseData(){constdataRef=useFirestore().collection('events')constburrito=useFirestoreDocData(dataRef);console.log(burrito)//return <p>The burrito is {burrito.events.event.name}!</p>;return<p>Test</p>}constTemplateDefault=()=>{return<FirebaseAppProviderfirebaseConfig={firebaseConfig}><h1>Essai Firebase</h1><SuspenseWithPerffallback={<p>Loading Firebase</p>}traceId={'testload'}><PixFirebaseData/></SuspenseWithPerf></FirebaseAppProvider>}exportdefaultTemplateDefault;
I've bee trying to debug this for a while but I don't even know what pushes this error. Anybody got that one before?
This discussion was converted from issue #285 on December 10, 2020 00:35.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Getting this error while trying to modify the tutorial for my needs.
Here is my code
I've bee trying to debug this for a while but I don't even know what pushes this error. Anybody got that one before?
Beta Was this translation helpful? Give feedback.
All reactions