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
Importing resources based on URL does not work if a base path is set in SvelteKit. This includes the explicit URL import (import Image from './image.png?url') as well as the implicit import for image files (import Image from './image.png').
No errors are produced in logs, the returned URL just happens to result in a 404.
This appears to have been a regression introduced somewhere between 1.0.0-next.572 (which I can confirm is working) and 1.0.0-next.587 (which does not work)
Describe the bug
Importing resources based on URL does not work if a base path is set in SvelteKit. This includes the explicit URL import (
import Image from './image.png?url'
) as well as the implicit import for image files (import Image from './image.png'
).No errors are produced in logs, the returned URL just happens to result in a 404.
Reproduction
https://github.com/WaltzingPenguin/url-import-with-base-path
src/routes
(Named "thinking-orange.png" in repro)src/routes/index.svelte
svelte.config.js
:Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
1.0.0-next.336
is the latest version of SvelteKit I found where this worked as expected.The text was updated successfully, but these errors were encountered: