Can you use this for local images? #107
TomSmedley
started this conversation in
General
Replies: 1 comment 5 replies
-
I ran into this error as well. I think the components assume image url always a cdn one, which might lead to that error. Would be nice if this error can be handled and just simply fallback to render the original url instead. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey this looks like a great solution for Svelte that doesn't have a native image optimisation option. Most of my projects that are CMS based score on the lighthouse poorly because of image optimisation and lack of WebP. This wasn't an issue with NextJS as it would optimise the images.
What I am finding however, is local images are not working, I noticed on the React extention you can import a local file, but with Svelte it gives the error:
Does it automatically transform all
img
tags with Svelte? As some are still using<img src="/image.png">
rather than import.Beta Was this translation helpful? Give feedback.
All reactions