Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

206
Visualizações
FirebaseUI incompatible with firebase v9?

I was trying to add easy sign-in UI provided by Firebase to my web-app (check this out: https://firebase.google.com/docs/auth/web/firebaseui?authuser=0 ), but it seems like there are compatibility issues.

Whenever I try to install the package using npm and the following code: $ npm install firebaseui --save, and then import it into my firebase-config.js file like so:

import { initializeApp } from "firebase/app";
import { getFirestore } from 'firebase/firestore';
var firebaseui = require('firebaseui');

I get the following error in React:

Attempted import error: ‘firebase/app’ does not contain a default export (imported as ‘firebase’)

Obviously there was a shift in the way modules get imported. I am aware of the solution by downgrading the firebase app to any version below v9, however, these versions start breaking my code in other parts. Using the compatibility version by importing: import { initializeApp } from "firebase/comp/app"; does not help and I get the same error as above.

Has anyone been able to find a workaround of how to elegantly incorporate the firebaseui authentication package into the current v9 of firebase?

Help would be greatly appreciated!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda