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

475
Views
Error: Unable to resolve image URL from source (undefined) SANITY.IO

Error: Unable to resolve image URL from source (undefined)

I did my ImageBuilder configuration in another file and imported the urlFor function into my component. While I am able to map through/spread my values, I am not able to get the image url using the urlFor()

Running my queries in another file and importing a promise that I can handle with a useEffect()

useEffect(() => {
        const SLIDE = async () => {
            const slideItems = await SLIDES
            setSlide(...slideItems)
        }
        SLIDE()
    }, [])

I can access my data with the object properties. i.e: {slide.slide_title}

The thing is when I run the query from sanity studio, I get my values, and when I console.log too I get my values too BUT this urlFor(slide.slide_image).url() does not work for me.

What am I doing wrong?

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!