Home > Software design >  Why module not found error occur in react?
Why module not found error occur in react?

Time:08-05

I try to connect firebase data base to react app but it give error module not found

import firebase from "firebase/app"
import "firebase/auth";
 const app = firebase.initializeApp({
    apiKey: ,
    authDomain: ,
    projectId: ,
    storageBucket: ,
    messagingSenderId: ,
    appId: 
 })
 export const auth = app.auth()
 export default app

This is a picture of error enter image description here

CodePudding user response:

Kindly check if firebase exists in your package.json file dependencies

If not found you can run:

npm i @firebase/app

If found you can reinstall the package

  • Related