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'm developing a SvelteKit route named 'in' (not English). Everything went fine until I added a shared.svelte.ts module and tried to import something from it. I got the following error:
[vite] (ssr) Error when evaluating SSR module /src/routes/[...]/in/+page.svelte:
|- Error: Failed to load url ./shared.svelte.js (resolved id: ./shared.svelte.js) in [...]/in/+page.svelte. Does the file exist?
I couldn't understand why it didn't work because other routes use the same pattern. Then I realized maybe it was the route name that caused troubles because 'in' means something else in English and programming languages. Changing it to something else fixed it.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
I'm developing a SvelteKit route named 'in' (not English). Everything went fine until I added a
shared.svelte.ts
module and tried to import something from it. I got the following error:I couldn't understand why it didn't work because other routes use the same pattern. Then I realized maybe it was the route name that caused troubles because 'in' means something else in English and programming languages. Changing it to something else fixed it.
Reproduction
https://www.sveltelab.dev/xofixorpo11tg83
Steps to reproduce
No response
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: