Closed xirf closed 3 weeks ago
inferSize
is only valid for images from http remote hosts. It's intended that it does not work for images inside public and src.
Nonetheless, we used to have a better error message here telling you this I'm pretty sure, so still something to fix
I opened a PR that would improve the error message: #11823
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
getImage and Image return
Failed to parse URL from ...
wheninferSize
is set totrue
this happen when both when image is loaded from
public/
or fromsrc/
.An typeError also happend when pass the image from collection to <Image src={post.data.cover}
What's the expected result?
Image is loaded without an error
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-cxn7kx
Participation