- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2.1k
Description
Describe the bug
Hey @sveltejs Team 👋,
I got this annoying error with the dev server since a few releases, and I'm surprised no one has reported this before (I thought someone would report this since then).
Even if the exports of my ledger.remote.ts are only remotes. I'm sure this is a bug, because if I change just 1 character inside this file (even just by adding a space in the code), everything works perfectly again until the next vite dev restart.
Reproduction
I tried for a few hours to reproduce this in a new repository, but I couldn't get to make this bug appear. I will continue to try, but I created this issue in the meantime. Maybe someone in the svelte team directly sees the origin?
Also, it is very easily reproducible in my codebase.
Logs
[500] GET /forex/ledger
2025-09-23T09:41:55.609048680Z Error: `getLedgerTable` exported from src/routes/(app)/forex/ledger/ledger.remote.ts is invalid — all exports from this file must be remote functions
2025-09-23T09:41:55.609052014Z     at init_remote_functions (file:/usr/src/app/node_modules/@sveltejs/kit/src/exports/internal/remote-functions.js:20:10)
2025-09-23T09:41:55.609054139Z     at eval (src/routes/(app)/forex/ledger/ledger.remote.ts:259:49)
2025-09-23T09:41:55.609056139Z     at async ESModulesEvaluator.runInlinedModule (file:/usr/src/app/node_modules/vite/dist/node/module-runner.js:910:3)
2025-09-23T09:41:55.609058222Z     at async SSRCompatModuleRunner.directRequest (file:/usr/src/app/node_modules/vite/dist/node/module-runner.js:1119:59)
2025-09-23T09:41:55.609212139Z     at async SSRCompatModuleRunner.directRequest (file:/usr/src/app/node_modules/vite/dist/node/chunks/dep-M_KD0XSK.js:18863:22)
2025-09-23T09:41:55.609237305Z     at async SSRCompatModuleRunner.cachedRequest (file:/usr/src/app/node_modules/vite/dist/node/module-runner.js:1037:73)
2025-09-23T09:41:55.609240972Z     at async eval (src/routes/(app)/forex/ledger/+page.server.ts:1:1)System Info
System:
  OS: macOS 26.0
  CPU: (10) arm64 Apple M4
  Memory: 135.67 MB / 16.00 GB
  Shell: 5.9 - /bin/zsh
Binaries:
  Node: 24.5.0 - /opt/homebrew/bin/node
  Yarn: 1.22.22 - /usr/local/bin/yarn
  npm: 11.5.1 - /opt/homebrew/bin/npm
  bun: 1.2.2 - /usr/local/bin/bun
Browsers:
  Safari: 26.0
npmPackages:
  @sveltejs/adapter-node: ^5.3.2 => 5.3.2 
  @sveltejs/kit: ^2.39.1 => 2.43.1 
  @sveltejs/vite-plugin-svelte: ^6.2.0 => 6.2.0 
  svelte: ^5.38.10 => 5.39.4 
  vite: ^7.1.5 => 7.1.7Severity
annoyance
Additional Information
No response
GhostTraderX, ehahn9, karlos1337, LetrixZ, noobmaster19 and 2 more
Metadata
Metadata
Assignees
Labels
No labels
