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

150
Views
firebase - Uncaught TypeError: Cannot read properties of undefined (reading 'options')

I need to setup firebase and firestore in my vue app. I've created a folder named firebase inside the src of my project and inside it I've a file named init.js

I've this code inside the file, but I'm unable to start the firebase ui from my login component

import { initializeApp } from 'firebase/app'
import { getFirestore } from 'firebase/firestore'
import * as firebaseui from 'firebaseui'

const config = {
    apiKey: "....",
    authDomain: "...firebaseapp.com",
    databaseURL: "...firebaseio.com",
    projectId: "...",
    storageBucket: "..",
    messagingSenderId: "...",
    appId: "...",
    measurementId: "..."
}


const app = initializeApp(config)
const db = getFirestore()
const ui = new firebaseui.auth.AuthUI(app)


export { db, ui }

When I'm importing the ui const in my component I will get this error: Uncaught TypeError: Cannot read properties of undefined (reading 'options')

How I can fix this?

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

0

As explained in the doc, you need to pass the Firebase App object (i.e. app) to the getFirestore() method.

const app = initializeApp(config)
const db = getFirestore(app)
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!