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

236
Views
'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
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!