Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

237
Visualizações
'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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda