Even though the error indicates that I’m passing something incorrectly, I’m assuming it’s a Firebase/React Native/Expo Go library or config issue for these following reasons;
- Moved the code to app.tsx on startup and I get the same exact error.
- I’ve tried multiple iterations with getDoc, getDocs, setDocs, and I still get the same error.
- The error typically takes 20-30 seconds before it occurs.
Anyone ever encounter this error? I think I’ll need to get in contact with Firebase team.
2
Answers
Answer:
The problem was conflicting libraries. Three and Expo-three libraries were somehow conflicting or breaking firebase/firestore. Firebase/Firestore library was completely up to date. So I don't think it was down-grading any libraries for peer-dependencies to work. Not sure why those would conflict but they do for some reason.
you can retrieve all documents in a collection by omitting the
where()
filter entirely: