Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import from modules inside a route named 'in' #19122

Closed
7 tasks done
henrykrinkle01 opened this issue Jan 2, 2025 · 0 comments
Closed
7 tasks done

Cannot import from modules inside a route named 'in' #19122

henrykrinkle01 opened this issue Jan 2, 2025 · 0 comments

Comments

@henrykrinkle01
Copy link

henrykrinkle01 commented Jan 2, 2025

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:

[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.

Reproduction

https://www.sveltelab.dev/xofixorpo11tg83

Steps to reproduce

No response

System Info

N/A

Used Package Manager

pnpm

Logs

No response

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant