Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

[Ionic 5] Firebase X

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>