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

185
Vistas
× Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app-compat/no-app)

here is where i am getting the error:

import {Button, ThemeProvider} from "@mui/material";

import firebase from "firebase/compat/app"
import "firebase/compat/auth"

const auth = firebase.auth();

function LoginForm(props) {

    function loginHandler() {

    }

    function loginWithGoogleHandler() {
        const provider = new firebase.auth.GoogleAuthProvider();
        auth.signInWithPopup(provider);
    }

    return (

        <ThemeProvider theme={props.theme}>
            <Button variant="contained" color="primary" onClick={loginHandler}>
                LOGIN
            </Button>
            <Button variant="contained" color="primary" onClick={loginWithGoogleHandler}>
                LOGIN WITH GOOGLE?
            </Button>
        </ThemeProvider>

    );

}

export default LoginForm;

It does not say which line the error is one. I looked up some other solutions and they said that you were defining something before the other thing but i didnt understand it very well and those solutions contained const db = firebase.firestore(); so i think its something else that is wrong with my code.

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