Closed
Description
Describe the bug
My team developed an extensive graphing library in Svelte 4. However, when trying to use the library in a Svelte 5 app, half of the features don't work and the error effect_update_depth_exceeded
appears in the console. However, the stack trace is only four functions, and all of them are Svelte internals:
effect_update_depth_exceeded errors.js:187
infinite_loop_guard runtime.js:461
flush_queued_root_effects runtime.js:475
process_deferred runtime.js:539
Therefore, it seems almost impossible to debug. This issue means that our library is impossible to use in any Svelte 5 application.
Reproduction
To inspect the project directly:
git clone git@github.com:chartium/libchartium.git
cd libchartium
git checkout svelte5
pnpm install
pnpm dev
Alternatively, for a simpler setup, check out my demo project, which uses the current version of libchartium
available from NPM.
System Info
System:
OS: Linux 6.8 elementary OS 7.1 Horus 7.1 Horus
CPU: (16) x64 AMD Ryzen 7 5700U with Radeon Graphics
Memory: 6.00 GB / 14.97 GB
Container: Yes
Shell: 3.7.1 - /usr/bin/fish
Binaries:
Node: 22.8.0 - ~/.nvm/versions/node/v22.8.0/bin/node
npm: 10.8.2 - ~/.nvm/versions/node/v22.8.0/bin/npm
pnpm: 9.1.1 - ~/.nvm/versions/node/v22.8.0/bin/pnpm
bun: 1.1.27 - ~/.bun/bin/bun
Browsers:
Brave Browser: 128.1.69.162
npmPackages:
svelte: 5.0.0-next.244 => 5.0.0-next.244
Severity
blocking an upgrade
Metadata
Metadata
Assignees
Labels
No labels