-
Notifications
You must be signed in to change notification settings - Fork 935
TypeError: e.addEventListener is not a function - Firestore (Expo) #2991
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
Comments
Having same issue. Did not have solution right now. Any ideas ? |
I am using Expo so I ran |
@tomadimitrie Thanks for this report. We added a |
@tomadimitrie in the meantime, mock it by putting something like |
@gwendall thank you. One question, is the last version of the Firebase JS SDK fully compatible with Expo? For some reason running |
@tomadimitrie that's not something firebase contributors can answer. Look for @EvanBacon on the Regards! |
@edi thanks! |
installing 7.9.0 helped me. Will check later if it can work with higher versions of firebase. |
This will be fixed in our release next week. We are not doing any releases this week. Please either downgrade to 7.14.1 or define |
I have tried several versions and none of them works, when downloading some previous version, the error disappears but the connection to firebase stops working, even with version 7.14.1 |
RN/Expo users will have to define |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Running any query to Firestore throws this error:
[Unhandled promise rejection: TypeError: e.addEventListener is not a function. (In 'e.addEventListener("visibilitychange", this.ah)', 'e.addEventListener' is undefined)]
Steps to reproduce:
Initialize Firebase, then run any query.
Relevant Code:
The text was updated successfully, but these errors were encountered: