🐛 BUG: images integration could use better error messages when invalid props are provided #3994
Closed
1 task done
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
What version of
astro
are you using?1.0.0-beta.73
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
Describe the Bug
A few rough edges related to prop validation came up during the bug bash today, specifically:
<Image />
with an undefinedsrc
can hit an error whengetImage
<Picture />
with an undefinedwidths
can hit an error ingetPicture
@astrojs/image
is installed but not added to the Astro config - can we error here in<Image />
and<Picture />
?<img src={myImage} />
? The plugin would convert this to an ESM import, if nothing else does?raw
work here?Link to Minimal Reproducible Example
https://astro.new
Participation
The text was updated successfully, but these errors were encountered: