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