Open dextersiah opened 4 weeks 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'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