-
Notifications
You must be signed in to change notification settings - Fork 913
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
Namespace imports #1832
Comments
Can you please provide some detail on what error you see, and steps to reproduce? |
Yes, the error i see is what is provided in the original description. It is a warning. The project is a react project using javascript and .jsx files The two instances where I use the import firebase from 'firebase';
...
firebase.initializeApp({
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN
}); and in another file like this: import firebase from 'firebase';
...
signInOptions: [
firebase.auth.FacebookAuthProvider.PROVIDER_ID,
firebase.auth.GoogleAuthProvider.PROVIDER_ID,
firebase.auth.EmailAuthProvider.PROVIDER_ID
] I have tried modifying the second file to be: import firebase from 'firebase/auth';
...
signInOptions: [
firebase.FacebookAuthProvider.PROVIDER_ID,
firebase.GoogleAuthProvider.PROVIDER_ID,
firebase.EmailAuthProvider.PROVIDER_ID
] but it does not work properly saying that the auth providers are not properties of firebase |
Hi there - two things:
If you decide you want to use firestore, for example, add the line:
But either way it shouldn't cause any bugs, you'll just be loading more code than you need.
|
Hey @jakeleventhal. We need more information to resolve this issue but there hasn't been an update in 7 days. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
This works. Thanks. |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
I am unable to import properly from the auth namespace
Steps to reproduce:
When using firebase, I get the following warning in my console:
I am using ES Modules but when I try to import from specific packages, none of the sign in providers work properly.
Relevant Code
The text was updated successfully, but these errors were encountered: