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

235
Vistas
'Ref' Not Defined - Firebase

Im following a tutorial for doing database calls and im getting the error..

Uncaught ReferenceError: ref is not defined

This is the code im trying to run:

const dbRef = ref(db);

The tutorial shows you how to import the necessary modules from Firebase and I am doing this as its shown, like this

import { getDatabase, ref, child, onValue, get } from "https://www.gstatic.com/firebasejs/9.1.3/firebase-database.js";

Am I right in thinking that doing this should define 'ref' Because the person doing the tutorial does not define it and it works straight away. (This tutorial is from OCT 8, 21 so I don't think much would have changed Firebase wise since then)

What am I missing? Thanks in advance

about 4 years ago · Juan Pablo Isaza
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