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
Error: Unknown variable dynamic import: ../[foo]/index.foo.js
at vite/dynamic-import-helper:7:96
at new Promise (<anonymous>)
at __vite_ssr_exports__.default (vite/dynamic-import-helper:6:12)
at load (/src/routes/[foo]/+page.js:2:59)
at Module.load_data (/node_modules/@sveltejs/kit/src/runtime/server/page/load_data.js:110:43)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eval (/node_modules/@sveltejs/kit/src/runtime/server/page/index.js:195:13)
The text was updated successfully, but these errors were encountered:
Oreilles
changed the title
Dynamic import fails in route with template parameters
Dynamic import fails in route with template parameters or (group)
Jan 14, 2023
Describe the bug
Dynamically importing a module in a route with parameters or (group), for example:
Fails with the following error:
Related: #8490
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-peg2jd?file=src/routes/[foo]/+page.js
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: