question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase UI is incompatible with Firebase SDK 9 (beta)

See original GitHub issue
  • 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:

  1. 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);
  1. Experience TypeError, since firebase is undefined in firebaseui-web: https://github.com/firebase/firebaseui-web/blob/1a8f9e523f76df7a6c5da36b63b4d2a5b34b64ef/javascript/widgets/authui.js#L127
TypeError: Cannot read property 'initializeApp' of undefined

@davideast has commented on the issue over at https://github.com/firebase/firebase-js-sdk/discussions/4375#discussioncomment-330765 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).

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:18
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

11reactions
jamesdanielscommented, May 26, 2021

Working on support over at #850 FYI.

10reactions
shauryaahercommented, May 6, 2022

Hi @shauryaaher, for now FirebaseUI-web only works with v9 via the compatibility layer. We know this is a pain point, and we’re investigating updates to allow it to work with the modular syntax, but at this time I can’t share any timelines.

Ok. Let’s hope it comes around soon. I would be really good if it comes around a week after Google IO. I’m terrible at CSS styling, and I don’t have a very big team to handle that work for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Will firebaseui be made compatible with firebase SDK version ...
I recently refactored my code to the new firebase SDK version 9 only to realize later that the new SDK is not compatible...
Read more >
Firebase Android SDK Release Notes - Google
The App Distribution Android SDK is now available in beta. You can use this SDK to ... Added a check for incompatible versions...
Read more >
Attempted import error: 'auth' is not exported from 'firebase/auth'
firebase /firebase-js-sdkFirebase web 9 Auth incompatible with Capacitor 3#5019 ... Firebase SDK version: 9 beta 2; Firebase Product: auth ...
Read more >
Firebase9へ移行してみた。つまづいた点を公開 - Zenn
個人開発しているSushi WorkというWEBサービスをFirebase8から9に移行した時の ... Firebase UI is incompatible with Firebase SDK 9 (beta) · Issue ...
Read more >
firebaseui - npm
Javascript library for customizable UI on top of Firebase SDK. Latest version: 6.0.2, last published: a month ago. Start using firebaseui in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found