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

107
Views
Firebas Firestore

I'm working on a project on react and this is my first time using firebase. I have set up my firebase config file in my app. I keep getting an error message (shown below) when I import db from my firebase.config.js file.

error message: export 'getFireStore' (imported as 'getFireStore') was not found in 'firebase/firestore'

my code:

enter code here

import { initializeApp } from 'firebase/app'
import { getFireStore } from 'firebase/firestore'

// Your web app's Firebase configuration
const firebaseConfig = {
// ...
}

// Initialize Firebase
const app = initializeApp(firebaseConfig)
export const db = getFireStore()

enter image description here

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

import firebase from "firebase/app";
import "firebase/firestore";
import "firebase/auth";

firebase.initializeApp({

});

const auth = firebase.auth();
const firestore = firebase.firestore();

export { auth, firestore };

TRY THIS CODE

about 4 years ago · Juan Pablo Isaza Report

0

did you install the package firebase using

npm install firebase
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!