Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
× 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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!