You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just upgraded a project from sveltekit 3xx to 4xx. The formerly absolute paths created by imagetools are now relative (to /) and therefore not working on any subpage.
<script>
import Img from './image.jpg?webp&meta'
</script>
{Img.src}
will result in
./_app/immutable/assets/image-a774634e.webp
In dev mode everything works, but as soon as I build the path is wrong.
Before the upgrade the result was /_app/immutable/assets/image-a774634e.webp for {Img.src}. So without the leading ..
I've just upgraded a project from sveltekit 3xx to 4xx. The formerly absolute paths created by imagetools are now relative (to
/
) and therefore not working on any subpage.will result in
In dev mode everything works, but as soon as I build the path is wrong.
Before the upgrade the result was
/_app/immutable/assets/image-a774634e.webp
for{Img.src}
. So without the leading.
.Repro
npm i
,npm run build
:/about
and check the sources below the headline.The text was updated successfully, but these errors were encountered: