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

405
Views
Firebase 9 - Export 'initializeApp' was not found in 'firebase/app'

After upgrading to firebase 9, i am getting trouble importing some functions that used to work on firebase 8. Of course i read the docs and refactored the code but this error keeps popping up, this also happens for other imports.

My imports look like this

import { initializeApp } from 'firebase/app'
import { getDatabase } from 'firebase/database'
import { getAuth, signInWithCustomToken, onAuthStateChanged } from 'firebase/auth'

The error I get is:

Export 'initializeApp' was not found in 'firebase/app'


I also tried using the compat libraries

import { initializeApp } from 'firebase/compat/app'
import { getDatabase } from 'firebase/compat/database'
import { getAuth, signInWithCustomToken, onAuthStateChanged } from 'firebase/compat/auth'

But i still get

WARNING "export 'initializeApp' was not found in 'firebase/compat/app'

This also happens for my other imports.

Any help?

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

0

The compat version uses the V8 name-spaced syntax and does not require separate imports for every function like in newer modular/functional syntax:

import firebase from 'firebase/compat/app'
import 'firebase/compat/database'
import 'firebase/compat/auth'

// import { getAuth } from 'firebase/auth' <-- Modular version only

If you are using compat version then make sure you are following the namespaced version tab in the documentation:

enter image description here

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!