Open
Description
- Firebase UI version: 4.8.0
- Firebase SDK version: 0.900.19
Firebase SDK 9 is now released in beta. When testing with Firebase UI 4.8.0, it becomes clear that Firebase UI is not ready to be used with the modularized import api of Firebase SDK 9.
Steps to reproduce:
- Load Firebase UI with Firebase SDK 9:
import { getApp } from 'firebase/app'
import { getAuth } from 'firebase/auth'
import * as firebaseui from 'firebaseui';
const app = getApp();
const auth = getAuth(app);
uiConfig = (…)
new firebaseui.auth.AuthUI(auth).start('#firebaseui-auth-container', uiConfig);
- Experience TypeError, since
firebase
is undefined in firebaseui-web:
firebaseui-web/javascript/widgets/authui.js
Line 127 in 1a8f9e5
TypeError: Cannot read property 'initializeApp' of undefined
@davideast has commented on the issue over at firebase/firebase-js-sdk#4375 (comment) in February:
We don't have a version of Firebase UI available for the new SDK just yet. But hang tight!
I could not see the issue being tracked here, so therefore I'm posting it as a specific reproducible bug to track. (The theme is somewhat already addressed in #257, however there as a more general issue).