Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

193
Vistas
'Cannot read property 'apps' of undefined' in nuxtJs/ firebase

I have tried to integrate firebase with Nuxt Js and i am getting this error

enter image description here

As per documentation first I have installed firebase with help of "npm install firebase" and then i have installed "npm install @nuxtjs/firebase" and third i have integrated my firebase config in modules in nuxt.config.js

enter image description here

so whats the solution to solve the above error? Thanks in advance

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

It depends on which version of @nuxtjs/firebase you are using, because this package @nuxtjs/firebase is not compatible with firebase version 9+ supporting tree-shaking.

So you need to downgrade you package to firebase version 8 and prior.

For more information, please check the authors github issues.

about 4 years ago · Juan Pablo Isaza Denunciar

0

If you are using the new Modular SDK v9.0.1 you might get the above error as it does not use firebase. namespace now, Try using getApps() instead of firebase.apps.

import { initializeApp, getApps } from "firebase/app" 
import { getFirestore } from "firebase/firestore"
import { getAuth } from "firebase/auth" 
const firebaseConfig = {...} 
if (!getApps().length) {
 //.... 
} 
const app = initializeApp(firebaseConfig) 
const db = getFirestore(app) 
const auth = getAuth(app) export {db, auth}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda