-
-
Notifications
You must be signed in to change notification settings - Fork 344
Vuefire error when reading a non-empty collection from firebase #947
New issue
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
Comments
Firebase 8 is still not supported, use Firebase 7 until support is released 🙂 |
@posva - Thanks for the quick response! It works now, using firebase 7. Until Firebase 8 is supported, maybe write a warning in the documentation, as a simple Maybe write something like |
Firebase 8 has been merged here. But the error is still there. I am getting this error with vuexfire. |
I couldn't reproduce on the example folders in vuefire 2 (3 is for Vue 3 and doesn't have support for firebase 8 yet). So if you manage to edit one of the examples to reproduce, I can take a look. Note vuexfire and vuefire use the same code underneath, so the bug is likely to appear in both |
@mfissehaye - Sorry, my fault. I tried to read the version from the commit log instead of my package.json. (I believe) Looks like |
I am still getting error Uncaught TypeError: Cannot convert undefined or null to object with versions updated. "vuefire": "^2.2.5",
Note: I am subscribing to a sub collection. |
Reproduction
I'm new to Vuefire, followed the steps in the Getting Started Guide.
I have a collection of cities in my firebase project that I want to fetch and show in the component.
If I use the code as described, the browser throws an error:
Steps to reproduce the behavior
My
package.json
My
main.js
My
db.js
Relevant parts of my Component
Expected behavior
To be able to retrieve the documents from the collection, loop over them and show in the console.
Actual behavior
If the collection of
cities
is not empty in Cloud Firestore, the browser throws the error above.I can add documents to the collection (using
db.collection( 'cities').add( { someCity }
), and they do show up in the firebase console, but I'm not able to read them using the code above.any clues? Maybe an unspotted typo, maybe version differences?
Thanks!
The text was updated successfully, but these errors were encountered: