Skip to content

React-firebaseui: Cannot read properties of undefined (reading 'initializeApp') #478

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

Closed
mankinchi opened this issue Oct 15, 2021 · 4 comments

Comments

@mankinchi
Copy link

Version info

React: 17.0.2

Firebase: 9.1.3

ReactFire: 4.2.0

react-firebaseui: 5.0.2

Test case

Main component
image

Layout component
image

You can see that the provider is set up correctly

Component
image

Expected behavior

FirebaseUI to work correctly.

Side question: How can I grab the provider ID for firebase auth? Should I grab it straight from firebase/auth instead of using useAuth hook?

Actual behavior

Error
image

@nbangba
Copy link

nbangba commented Oct 29, 2021

i am facing the same problem

@jhuleatt
Copy link
Collaborator

Hi @mankinchi and @nbangba, v6 of react-firebaseui only works with the compat imports of Firebase v9, described here: firebase/firebaseui-web-react#158 (comment)

There's also a discussion about this here: #474. I'll try to post an example of how to use FirebaseUI react-firebaseui v6 alongside ReactFire v4 soon.

@Imprasna
Copy link

Screenshot 2021-11-26 104045
I want to fix this, but I don't know what am I supposed to do. Can anyone help me fix this issue please.

@jhuleatt
Copy link
Collaborator

jhuleatt commented Dec 2, 2021

I posted a workaround here: #474 (comment)

Please give it a try and comment in that discussion if it isn't working :)

@jhuleatt jhuleatt closed this as completed Dec 2, 2021
@FirebaseExtended FirebaseExtended locked and limited conversation to collaborators Jan 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants