Skip to content

Firestore docChanges error #183

@handlebarcreative

Description

@handlebarcreative

Firestore has adjusted their API, and docChanges is no longer a property, but a method... thus breaking the vuefire plugin when using Firestore.

This applies for the firebase npm module version ^5.0.0.

The error that gets reported is:


Uncaught Error: QuerySnapshot.docChanges has been changed from a property into a method, so usages like "querySnapshot.docChanges" should become "querySnapshot.docChanges()"
    at new FirestoreError (index.cjs.js?5a4f:346)
    at throwDocChangesMethodError (index.cjs.js?5a4f:17164)
    at Function.get (index.cjs.js?5a4f:17176)
    at Object.eval [as next] (vuefire.esm.js?8676:229)
    at next (index.cjs.js?5a4f:16990)
    at eval (index.cjs.js?5a4f:15021)

As a temporary workaround, include "firebase": "4.13.1" as a dependency in your package.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions