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
dir-2 works but dir-1 returns the following error:
Error: Unknown variable dynamic import: ../../../(app)/dir-1/test.svelte
at dynamic-import-helper.js:7:96
at new Promise (<anonymous>)
at default (dynamic-import-helper.js:6:12)
at load (+page.js:3:22)
at load_node (client.js?v=c8e2c5a3:717:39)
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 put this issue to Svelte, but they think it might be a Vite bug.
I use the following code for
[slug]
dir:I have exactly the same directories except one has a group routing:
dir-2
works butdir-1
returns the following error:Reproduction
https://www.sveltelab.dev/7h5wu99oqiwukqn?files=.%2Fbuilt%2Foutput%2Fserver%2Fentries%2Fpages%2F%28app%29%2Fdir-1%2F_slug_%2F_page.ts.js%2C.%2Fbuilt%2Foutput%2Fserver%2Fentries%2Fpages%2Fdir-2%2F_slug_%2F_page.ts.js
Steps to reproduce
Reproduction method 1
Use the above reproduction:
Reproduction method 2
Go to http://localhost:5173/dir-2/test to see it is working.
Go to http://localhost:5173/dir-1/test to see the error.
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: