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

402
Visualizações
Firebase 9 - Export 'initializeApp' was not found in 'firebase/app'

After upgrading to firebase 9, i am getting trouble importing some functions that used to work on firebase 8. Of course i read the docs and refactored the code but this error keeps popping up, this also happens for other imports.

My imports look like this

import { initializeApp } from 'firebase/app'
import { getDatabase } from 'firebase/database'
import { getAuth, signInWithCustomToken, onAuthStateChanged } from 'firebase/auth'

The error I get is:

Export 'initializeApp' was not found in 'firebase/app'


I also tried using the compat libraries

import { initializeApp } from 'firebase/compat/app'
import { getDatabase } from 'firebase/compat/database'
import { getAuth, signInWithCustomToken, onAuthStateChanged } from 'firebase/compat/auth'

But i still get

WARNING "export 'initializeApp' was not found in 'firebase/compat/app'

This also happens for my other imports.

Any help?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The compat version uses the V8 name-spaced syntax and does not require separate imports for every function like in newer modular/functional syntax:

import firebase from 'firebase/compat/app'
import 'firebase/compat/database'
import 'firebase/compat/auth'

// import { getAuth } from 'firebase/auth' <-- Modular version only

If you are using compat version then make sure you are following the namespaced version tab in the documentation:

enter image description here

about 4 years ago · Juan Pablo Isaza Relatório
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