-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
Use sv cli to create a sveltekit project, upgrade all dependencies to the latest version, and execute bun run build. The following warning appears:
Export "setContext" of module "node_modules/svelte/src/internal/server/context.js" was reexported through module "node_modules/svelte/src/index-server.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in ".svelte-kit/generated/root.svelte" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.
Export "getContext" of module "node_modules/svelte/src/internal/server/context.js" was reexported through module "node_modules/svelte/src/index-server.js" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
Either change the import in "node_modules/@sveltejs/kit/src/runtime/app/state/server.js" to point directly to the exporting module or reconfigure "output.manualChunks" to ensure these modules end up in the same chunk.
Reproduction
bunx sv create demo, and select SvelteKit demo- update latest dependencies:
"@fontsource/fira-mono": "^5.2.6",
"@neoconfetti/svelte": "^2.2.2",
"@sveltejs/adapter-auto": "^6.0.1",
"@sveltejs/kit": "^2.21.1",
"@sveltejs/vite-plugin-svelte": "^5.0.3",
"svelte": "^5.32.1",
"svelte-check": "^4.2.1",
"typescript": "^5.8.3",
"vite": "^6.3.5"
bun run build
Logs
System Info
System:
OS: Linux 6.14 EndeavourOS
CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-1350P
Memory: 2.51 GB / 15.30 GB
Container: Yes
Shell: 4.0.2 - /usr/bin/fish
Binaries:
Node: 23.9.0 - /usr/bin/node
Yarn: 1.22.22 - /usr/bin/yarn
npm: 11.3.0 - /usr/bin/npm
pnpm: 9.15.5 - /usr/bin/pnpm
bun: 1.2.13 - /usr/bin/bun
npmPackages:
svelte: ^5.32.1 => 5.32.1Severity
annoyance
quadratz, lakkenlak, ouksal, jnehlmeier and david22573
Metadata
Metadata
Assignees
Labels
No labels