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

193
Visualizações
× 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 à 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