-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Describe the bug
If a .remote.ts file imports another file a circular dependency is created.
This behavior seems to have been introduced with @sveltejs/kit 2.43.2
npm run build
Works fine
npm i -D @sveltejs/[email protected]
npm run build
Circular dependency: .svelte-kit/adapter-node/chunks/remote-11b58kr.js -> .svelte-kit/adapter-node/chunks/_page.js -> .svelte-kit/adapter-node/chunks/remote-11b58kr.js
Comment out the following lines from example.remote.ts
import { getStuff } from './stuff';
export const getData2 = query(() => getStuff());npm run build
Works fine
svelte-check finds no errors.
Reproduction
Logs
System Info
System:
OS: Linux 5.0 undefined
CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
Binaries:
Node: 20.19.1 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.8.2 - /usr/local/bin/npm
pnpm: 8.15.6 - /usr/local/bin/pnpm
npmPackages:
@sveltejs/adapter-node: ^5.4.0 => 5.4.0
@sveltejs/kit: ^2.43.1 => 2.43.1
@sveltejs/vite-plugin-svelte: ^6.2.0 => 6.2.1
svelte: ^5.39.5 => 5.40.0
vite: ^7.1.7 => 7.1.10Severity
blocking an upgrade
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels