Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

498
Vistas
Error message: ./src/firebase.js Module not found: Can't resolve 'firebase'

I am getting the following Error message: ./src/firebase.js Module not found: Can't resolve I 'firebase'

I am using firebase version firebase@9.0.2

Command in firebase.js import firebase from "from firebase";

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

In the 9.x version of the SDK you no longer can import the entire firebase object, but instead import individual functions. For more on this see the Firebase documentation on adding Firebase to your web app, which shows this as the starting point:

import { initializeApp } from 'firebase/app';

// TODO: Replace the following with your app's Firebase project configuration
const firebaseConfig = {
  //...
};

const app = initializeApp(firebaseConfig);

Alternatively you can keep using the older call style with the latest SDK, by using its compat imports:

// v9 compat packages are API compatible with v8 code
import firebase from 'firebase/compat/app';

I also recommend checking out the documentation on upgrading to the modular SDK, as most tutorials on others sites are likely going to be using the older style calls.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda