-
Notifications
You must be signed in to change notification settings - Fork 910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firestore crashes after 10.7.1
-> 10.7.2
update in Expo/React Native
#7962
Comments
Thanks for identifying this crash and opening a PR with a fix (#7963)! My apologies for breaking your setup. I'll work with you to get your fix merged ASAP so it can be included in the next release. |
+1, Rollback to 10.7.1 fixed this issue for now. |
I'm getting this error too and I've been stuck with it for the past day... I have to send this project to my teachers as my final and can't get it to work |
@LoranMaes Remove |
Another temporary hacky fix would be to set userAgent :p somewhere before calling firebase functions, e.g. in window.navigator.userAgent = "ReactNative"; // javascript
// or
(window.navigator as any).userAgent = "ReactNative"; // typescript |
I had this problem on 10.7.2 and rolled back and now I'm getting the same error with 10.7.1...
Not sure why I doubt there's actually I problem with 10.7.1... I start expo with --clear and it's clearly using 10.7.1. |
@Peege151 That's really odd that you're seeing the same crash on 10.7.1. That shouldn't be possible. Make sure you clear out your |
@Peege151 make sure you've specified "10.7.1" and not "^10.7.1" or "~10.7.1" in your package.json. To be extra sure, check your yarn.lock file to see if the package actually resolves to "10.7.1" |
I have a different problem; when I roll back to 10.7.1, I am getting the error "Error: Service firestore is not available". The code was running perfectly on version 10.0.0 but now am getting the "Error: Service firestore is not available" error with that one too. Now I am just really lost, here is my firebase package - "firebase": "10.7.1" - and here is my firebase config - import firebase from "firebase/compat/app"; // Your web app's Firebase configuration // Initialize Firebase // Use these for db & auth export { auth, db }; |
@kaberaarthur getting the same issue. 10.7.2 gives me the error reverting back to 10.7.1 gives me the error |
Getting the same error. |
The bug reported in this issue has been fixed (pending release). In the meantime, use my workaround or move away from @kaberaarthur @dev-arekusandoru @lasithalakmal If you're facing other issues with other versions, open a new issue for that. It's off topic here... |
Same issue. Workaround is not working either. |
@dev-arekusandoru
That is the solution right. Give a try |
In case anyone still has trouble... I had to additionally clear my yarn cache to get it to work again. I hope this helps someone! |
only deleted package-lock.json, removed "firebase": "^10.7.2" line from package.json and then installed earlier version which is firebase@10.7.1, it worked like a charm, thanks a lot, you are the man |
Yes that worked thank you |
@dev-arekusandoru @lasithalakmal @Yonom @arsotech, помогло решение |
I finally solved my issue, but I did that by creating a new project and moving all my code into it. I bet this is a rookie solution😂, but the app is now running ok on Firebase 10.7.1 |
@dconeybe counting everyone who interacted with this issue, this issue has affected 25+ devs and counting... Would it be possible to accelerate a release cut? 😊 |
same Issue with this |
A new firebase version was released, I guess you can now upgrade to that one for the fix: |
Firebase JS SDK version 10.8.0 was released on February 1, 2024 with the fix for this bug (https://firebase.google.com/support/release-notes/js#version_1080_-_february_1_2024). Please upgrade to pick up the fix. Again, apologies for the inconvenience this bug caused. |
Operating System
iOS 17.2
Browser Version
React Native 0.73.2 / Hermes
Firebase SDK Version
10.7.2
Firebase SDK Product:
Firestore
Describe your project's tooling
React Native app initialized with Expo
Describe the problem
After upgrading to Firestore SDK 10.7.2, fetching documents from Firestore causes an error.
The crash occurs during the
isSafari()
call introduced in this commit: d7ace80#diff-d73aa623e0442e31903665f2d555bbf0e1a317db2009f526e8f7209ebf662917R66This is because the
isSafari()
function from@firestore/utils
accessesnavigator.userAgent
. On React Native,navigator.userAgent
isundefined
.Steps and code to reproduce issue
The text was updated successfully, but these errors were encountered: