-
-
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
Getting 404 using @astrojs/image #5473
Comments
Could you try adding |
I've tried that. Doesn't work either :( |
It seems to be working fine for me on macos. In the codesandbox it's giving a 500 instead with this in the terminal: log
Maybe you can try bumping the node version? Seems like there's an issue with polyfilling some API. |
I will try that asap and report back. |
Also experiencing this issue on Node |
use node 16 again |
I've had this error fixed by installing |
The error seems to originate from the Based on some tests using this table as a reference, the issue only exists when using Node < 15.4, where this line will throw.
Are you sure that's not this Node 18 related issue? |
What version of
astro
are you using?1.6.10
Are you using an SSR adapter? If so, which one?
No
What package manager are you using?
yarn
What operating system are you using?
Windows
Describe the Bug
A new astro site with the
@astrojs/image
integration does not show the image.Code:
The Chrome Dev Tools showing a 404 with the url
http://localhost:3000/_image?w=150&h=150&href=https%3A%2F%2Fvia.placeholder.com%2F150x150
.Any ideas?
Link to Minimal Reproducible Example
https://codesandbox.io/s/blissful-goldberg-lvvwxz?file=/src/pages/index.astro
Cannot believe this is not working.
I use Windows but the linked Sandbox uses Linux and it's not working either.
Participation
The text was updated successfully, but these errors were encountered: