Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The provided src attribute is an unsupported type ImageUrlBuilder. #37

Open
Mr-Nobody1 opened this issue Aug 27, 2022 · 9 comments
Open

Comments

@Mr-Nobody1
Copy link

image

@RoyetteMillares
Copy link

we have the same issue im searching in the SANITY DOCS there's no solution for that

@bond0887
Copy link

bond0887 commented Nov 3, 2022

hey @RoyetteMillares @Mr-Nobody1, did any of you find any solution in this?

@RoyetteMillares
Copy link

RoyetteMillares commented Nov 3, 2022 via email

@Mr-Nobody1
Copy link
Author

hey @RoyetteMillares @Mr-Nobody1, did any of you find any solution in this?

No, nothing worked for me.

@bond0887
Copy link

bond0887 commented Nov 6, 2022

using async await instead of .then worked for me.

const fetchAbouts = async () => {
const query = '*[_type == "abouts"]';
setAbouts(await client.fetch(query));
}

useEffect(() => {
fetchAbouts();
}, []);

This code worked for me but I don't know the logic behind this, if anyone can explain it would be great. TIA

@smallbitmatters
Copy link

image
image

I have not changed anything from the time I finished coding and ran npm audit fix --force since the errors in the terminal ticks me. Anyone has a solution for this?

@mdnaeem95
Copy link

Hi there, there is a discrepancy between the schema set up in sanity and the attribute being called here.

In the testimonial schema, the name for the image is "imageurl", but in the code its given as (testimonials[currentIndex].imgurl).

Simply change the imgurl to "imageurl" (or you can change the schema, up to you), and it should work. Was stuck on so long for this as well.

@RoyetteMillares
Copy link

Okay okay thank you for the information

@ChimexOji
Copy link

Thanks a lot @mdnaeem95 . This was very helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants