Skip to content

TypeError: Cannot convert undefined or null to object #950

@jasmin92

Description

@jasmin92

image
Hey, i have faced this issue with when i tried to fetch from firestore.
I followed all instructions from docs.

Firestore database contains just one collection "users" with one document in it.

error occurred on:

firestore: {
    users: db.collection('users')
},

However, if i try to fetch it manually, it'll be returned without errors

 async created() {
    let users = await db.collection('users').get();
    users.forEach(user => {
      console.log(user.data());
    })
  }

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