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

192
Views
Cannot connect firebase database. says export not found

Tried linking firabase to my react front-end but got this error message;

Compiled with problems:X

ERROR in ./src/components/Feed.js 21:4-17

export 'default' (imported as 'db') was not found in '../firebase' (module has no exports)

I'm using V9 above of firabase and tried all the solutions on here so adding compat: import 'firebase'compat'auth';

This is my import section from feed.js

import "./firebase"
import firebase from 'firebase/app';
import db from "./firebase";
import { initializeApp } from 'firebase/app';

and this is inside my actual firebase.js

import { initializeApp } from "firebase/app";
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import 'firebase/compat/firestore';

---- copied firebase inbetween ----

// Initialize Firebase
const app = initializeApp(firebaseConfig);
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!