nuxt / image

Plug-and-play image optimization for Nuxt applications.
https://image.nuxt.com
MIT License
1.35k stars 270 forks source link

IPX: File not found when using SVGS from public #998

Open jpengelbrecht opened 1 year ago

jpengelbrecht commented 1 year ago

There seems to be a problem when loading SVGs from the public directory. If you try you get the error Error: [404] IPX: File not found.

i cant find anything in the documentation regarding this, am i missing something? Or is this not supported?

as a side note, everything 100% works on npm run dev. however it explodes on npm run generate.

edit: it seems it depends on the type of SVG. The simple cloud search one works but the techcrunch one doesnt CloudSearch

techcrunch-ar21 1

AndrisVNI commented 1 year ago

We have encountered similar issue. Time to to time svgs are not loaded and server returns 204 No content error. After page refresh 80% of times image is returned and rendered correctly

Mintimate commented 1 year ago

I have encountered the same situation as well. It worked fine when I tested it locally, but after deploying it to the server and using Cloudflare, I ran into issues. Almost all the SVGs are returning a 204 status code, and it doesn't seem to be a problem with Cloudflare.

mctweb commented 11 months ago

These are breaking on Netlify as well. Works locally. I'm using the NuxtPicture component.