Skip to content

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

Closed
@mankinchi

Description

@mankinchi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions