-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Astro Image component unhandled rejection error with JPG's #4980
Comments
I am able to reproduce this as well. @westernwontons, what version of node are you using? Is this possibly an underlying issue with squoosh? I originally ran into the issue using node 18.2.0. I then tried node 18.1.0 after reading this comment but got the same error. Node 18.0.0 finally worked for me. |
I'm using v18.10.0 at the moment. I haven't checked with different versions before. I did now and you are right, the error goes away when I use v18.0.0 |
Same issue with 18.12.0, Even 18.4 doesn't solve. Only v16 works now. Sidenote: Avif files still doesn't work on v16 or v18. Also the documentation suggest we can use image from public by adding Avif Error: // both not working - from public or inside src.
import heroImage from "/hero.avif";
import heroImage from "assets/hero.avif";
<Image src={heroImage} alt="Astronaut" />
My folder name contains |
Is there any update on this issue. node So, can anyone categorize this bug as |
@Princesseuh thanks so much! does this also fix the avif issue? |
I admittedly haven't tried, but I don't believe so. Planning to investigate that one separately! Sorry for the inconvenience in the meantime |
What version of
astro
are you using?1.4.2
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
I import an image like so:
then I use it like so:
and I get this error:
PNGs are fine, but JPEGs, WEBP images all show this behaviour. Haven't tested with AVIF yet.
Link to Minimal Reproducible Example
https://github.com/westernwontons/edi
Participation
The text was updated successfully, but these errors were encountered: