angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

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

Open jakehockey10 opened this issue 2 months ago • 0 comments

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.

jakehockey10 avatar Dec 01 '25 06:12 jakehockey10