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

291
Views
Why is firebase.storage ref missing child() function (or other properties)?

I imagine this should be a simple goal. I have some files stored in firebase, and I want to use validation like 'getDownloadUrl()' or 'child()' to navigate or confirm if file exists. That's kind of besides the point, though, as it seems my reference to my storage object is just missing some of the functions I expect to see, based on documentation and other google searches:

Here's the actual doc for the class: https://firebase.google.com/docs/reference/node/firebase.storage.Reference

So, assuming I have implemented this correctly, then I should be able to call the 'child()' function, right?

intellisense disagrees with docs

enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The new Firebase Modular SDK has a functional syntax rather than chaining method. That being said, you can just pass arguments in ref() to get a reference to child path as shown below:

const imageRef = ref(storage, "images", "1.png")

You can learn more about this syntax in the documentation (switch to 'modular' tab).


Similarly getDownloadURL is also a function now and must be imported from Firebase Storage SDK:

import { ref, getDownloadURL } from "firebase/storage"

const imageRef = ref(storage, "images", "1.png")

const url = await getDownloadURL(imageRef)
about 4 years ago · Juan Pablo Isaza Report
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!