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

379
Vistas
Firebase Error(only dev): ReferenceError: IDBIndex is not defined

When I build my app for production everything works fine but in development I'm getting this error when I'm trying to import collection and addDoc from firestore. I've read that the problem is related to vite grabbing Firebase's browser (esm) bundle and not the Node bundle. I have tried to fix this by adding a vite.config.js file with the following content but nothing changed:

import { defineConfig } from 'vite';
import path from 'path';

// vite.config.js
export default defineConfig({
  // config options
  resolve: {  
    alias: {
        ['firebase/firestore']: path.resolve(__dirname, 'node_modules/firebase/firestore/dist/firestore/index.d.ts')
  },extensions: ['.ts', '.js'] },
})
about 4 years ago · Santiago Gelvez
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