Skip to content

ERROR FirebaseError: Expected type '_Query', but it was: a custom _CollectionReference object in 21.0.0-rc.0 #3684

Description

@jakehockey10

Issue

Upgraded to the release candidate and using the following collection subscription:

collectionData(collection(firestore, `users/${u.uid}/devices`), {
    idField: 'id',
})

Error

ERROR FirebaseError: Expected type '_Query', but it was: a custom _CollectionReference object

Analysis

Not sure how to provide more detail on this, but it seems to be during a cast to Query in the onSnapshot handler.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp: firestoreCloud Firestore (src/firestore).needs: more infoWaiting on the reporter for repro, versions, or detail.type: bugDefect: expected behavior doesn't happen.version: current (v17+)Targets the current modular API (v17+).

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions