Firebase errors on pull of collections and documents.
- Dominant language
- TypeScript
- Stars
- 7.8k
- Forks
- 2.2k
- Avg merge
- 22h 28m
- Merged PRs (30d)
- 6
Description
Get these errors in the browser console.
"Error getting document at path ******: FirebaseError: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore"
and
"Error fetching user data: FirebaseError: Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore"
Had to override firebase with this in the package.json to get it to pull documents from firebase db.
"overrides": {
"firebase": "^12.7.0"
},
Contributor guide
Research direction
Start with the package.json Firebase dependency and reproduce the browser-console errors while pulling collections and documents. Compare behavior with and without the reported firebase ^12.7.0 override, then verify that collection and user-data reads work without the override and without either error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, firebase, typescript
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100