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

476
Visualizações
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
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