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

494
Views
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 answers
Answer question

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 Report
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!