Firestore dosn’t work ( TypeError: undefined is not an object (evaluating ‘t.constructor’) ) :
FirebaseX.fetchFirestoreCollection(
"lists",
[],
function (documents: any) {
console.log(
"Successfully fetched collection: " + JSON.stringify(documents)
);
},
function (error: any) {
console.error("Error fetching collection: " + error);
}
)
.then((result: any) => {
console.log("success!!! " + JSON.stringify(result));
})
.catch((error: any) =>
console.log("Error fetching collection: " + error)
);
When I use addDocumentToFirestoreCollection or setDocumentInFirestoreCollection, my app do nothing and no callback ( success or error ).
You need to know, I use Auth with FirebaseX and this work well
1 post - 1 participant