vuejs / vuefire

🔥 Firebase bindings for Vue.js
https://vuefire.vuejs.org
MIT License
3.86k stars 333 forks source link

Uncaught TypeError: ref.onSnapshot is not a function // Geopoint #179

Closed germanllop closed 6 years ago

germanllop commented 6 years ago

When I call a collection query on the firestore method and the collection has a Geopoint field there is an error, everything works amazing when there is no geopoint on any document's field.

Uncaught TypeError: ref.onSnapshot is not a function at subscribeToDocument (vuefire.js?d667:289) at eval (vuefire.js?d667:132) at Array.forEach () at subscribeToRefs (vuefire.js?d667:117) at Object.added (vuefire.js?d667:172) at eval (vuefire.js?d667:245) at Array.forEach () at Object.eval [as next] (vuefire.js?d667:244) at next (database.js?b3e7:999) at eval (async_observer.js?3a66:44)

Firestore call:

export default { ... firestore(){ return { employees: db.collection('employees').orderBy('name') } }, ... }

posva commented 6 years ago

This will be fixed in the next release (will release very soon). Could you test it out and tell me if it wasn't fixed?

germanllop commented 6 years ago

Yes of course I will test it. Thanks for the reply and the nice package Edit: I have updated the package and the same error pops when i create a geopoint as a field on firestore console.