We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read properties of undefined (reading 'collectionWithPath')
When trying to fetch data from Firestore using firebase().firestore().collection("users"), the following error occurs:
firebase().firestore().collection("users")
However, initializing Firebase in App.vue instead of app.js resolves the issue.
App.vue
app.js
3.0.0-rc.2
3.4.0-alpha.1
import { firebase } from "@nativescript/firebase-core"; import "@nativescript/firebase-firestore"; firebase().initializeApp({ showNotifications: true, showNotificationsWhenInForeground: true, });
firebase() .firestore() .collection("users") .orderBy("points", "desc") .where("points", ">", 0) .get() .then((querySnapshot) => { querySnapshot.forEach((documentSnapshot) => { users.push({ ...documentSnapshot.data(), id: documentSnapshot.id, }); }); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report:
Cannot read properties of undefined (reading 'collectionWithPath')
in Firebase FirestoreDescription
When trying to fetch data from Firestore using
firebase().firestore().collection("users")
, the following error occurs:However, initializing Firebase in
App.vue
instead ofapp.js
resolves the issue.Environment
3.0.0-rc.2
3.4.0-alpha.1
Steps to Reproduce
app.js
like this:The text was updated successfully, but these errors were encountered: