-
Notifications
You must be signed in to change notification settings - Fork 892
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
firebase.initializeApp() does not expose firestore() function #1091
Comments
Can you try using the latest SDK (5.3.1)? If that still doesn't work, I'm curious if adding this helps:
Thanks! |
I tried creating a clean project (using Here's a gist of the code and When I change the import to |
@erewh0n thanks for helping us dig into this. The first error you are seeing is due to the Polyfills that firebase loads to ensure that the environment is stable. The reasoning is outlined here: #871 (comment). Can you get me an example of your issue that I can dig into this some more? |
I have thesame issue as @erewh0n |
Actually mine is a bit complex because, It ony gives the error when i do the import in my App.js file When i do the import import Firebase from 'firebase'; It works in other screens of my app, but doesnt work in the App.js which is the entry level of the app |
I am using com.google.firebase:firebase-admin:6.5.0. I have set following rules in firebase. { PersistentConnection: pc_0 - Authentication failed: permission_denied (Access denied.). |
If any of you are still running into issues, please open a new issue with full repro instructions so that we can investigate. Thanks! |
@mikelehen I'm hitting this as well. I referenced our issue here which @Zirak tracked down to the @firebase/firestore not having a |
It's possible to use the |
@ryanpbrewster Great, thanks a lot! |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Calling
firebase.initializeApp(config).firestore()
errors out withundefined is not a function
. This occurs whenever I try to run the react native application. However if I run the same code directly withnode
this error does not occur. Something confusing is happening when it is run within the react native project / Android simulator.Steps to reproduce:
react-native-cli
to initialize a new app.firebase.initializeApp(config).firestore()
with a validconfig
object.Relevant Code:
The text was updated successfully, but these errors were encountered: