Open dextersiah opened 5 months ago
Duplicate of #1210
Issue still happening on @nuxt/image@1.7.0
I'm experiencing the same issue.
I'm encountering the same error message and issue (ipx-error, status 500).
since my service is deployed using Nginx, I have set up a proxypass for the path handled by _ipx via Nginx.
of course, I am using version 1.7.0 of @nuxt/image, and I have directly installed version 0.33.4 of the sharp module as a dependency.
however, while everything works fine in the local development environment, the same error that the original poster mentioned occurs for some .svg and .png in the dev, stg, and prod environments.
It would be one thing if nothing worked, but this partial failure is driving me crazy.
this error has persisted for a very long time, and since it still hasn't been resolved, I am beginning to doubt whether Nuxt/Image is functioning correctly as an official image processing library in Nuxt3.
Could you please try adding "sharp": "0.33.4"
to your package.json overrides and let me know whether this works for you?
Could you please try adding
"sharp": "0.33.4"
to your package.json overrides and let me know whether this works for you?
I did try this as I saw others managed to fixed with this additional overrides file in other issues. Unfortunately it did not solve the issue.
Would you, as a last resort, try combining the above with supportedArchitectures
field? E.g. for pnpm:
"pnpm": {
"supportedArchitectures": {
"os": [
"current",
"linux"
],
"cpu": [
"current",
"x64"
]
},
"overrides": {
"sharp": "0.33.4"
}
}
I am having the same issue, have you found a solution yet?
This is still a problem and really annoying. Any chance that this issue can be resolved? It seems pretty ridiculous that we can't successfully display a jpg image with a vanilla configuration
I have the same issue after switching to Window from macOS.
For those who use pnpm, I get it working by adding the following to package.json
according to sharp Installation / cross-platform.
At install time, package managers will automatically select prebuilt binaries for the current OS platform and CPU architecture, where available.
Some package managers support multiple platforms and architectures within the same installation tree and/or using the same lockfile.
"pnpm": {
"supportedArchitectures": {
"os": ["win32", "darwin", "current"],
"cpu": ["x64", "arm64"]
},
"overrides": {
"sharp": "0.33.4"
}
}
I can confirm that the problem for me is temporarily fixed with adding the "overrides" section for "pnpm".
Tho I also think that this is really annoying especially as this is the official nuxt image module :/
I'm deploying my Nuxt onto a Digital Ocean Droplet but I'm receiving the following error in my network tab when fetching the images from IPX.
SVG images seems to be working as normal since SVGs are not "optimized".
Running the build code locally seems to be working fine as well.
I currently have the site behind Nginx Reverse Proxy and the following is in my config file.
Reproduction
https://stackblitz.com/edit/github-9d8pkn?file=app.vue
Nginx Config
Actual Results
Additional Notes
I did try the possible solutions in the error message. No change in behavior My system information