transloadit / uppy

The next open source file uploader for web browsers :dog:
https://uppy.io
MIT License
29.15k stars 2.01k forks source link

Crash when the svelte dashboard is used. #5501

Open scottandrew opened 1 day ago

scottandrew commented 1 day ago

Initial checklist

Link to runnable example

No response

Steps to reproduce

I am trying to the Svelte Dashboard into a svelte 5 application and I am getting a crash.

Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'setOptions')

in Dashboard.svelte
in +page.svelte
in layout.svelte
in +layout.svelte
in root.svelte
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/@uppy+svelte@4.1.1_@uppy+core@4.2.3_@uppy+dashboard@4.1.2_@uppy+core@4.2.3__@uppy+drag-drop@4_3ga2mgympouvagcnpxi63p2i3e/node_modules/@uppy/svelte/dist/components/Dashboard.svelte:35:7)
at untrack (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:843:10)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:281:3)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at render_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:317:9)
at legacy_pre_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:272:17)
at Dashboard3 (localhost꞉5174/node_modules/.vite/deps/@uppy_svelte.js?v=2087052f:8413:3)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:47:51)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:38:13)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at wrapper (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:28:3)
at _page (localhost꞉5174/src/routes/upload/[project_id]/+page.svelte:38:2)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:47:51)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:38:13)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at wrapper (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:28:3)
at <anonymous> (localhost꞉5174/.svelte-kit/generated/root.svelte:119:16)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js:36:26)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js:36:13)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at component (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js:27:2)
at <anonymous> (localhost꞉5174/.svelte-kit/generated/root.svelte:117:16)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/snippet.js:68:11)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/snippet.js:48:59)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/snippet.js:48:20)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at snippet (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/snippet.js:36:2)
at Layout (localhost꞉5174/node_modules/.pnpm/@sveltejs+kit@2.7.4_@sveltejs+vite-plugin-svelte@4.0.0_svelte@5.1.9_vite@5.4.10_@types+node@2_dx3jw7dlhbqf7hxyzjk2wlshuu/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/layout.svelte?v=2087052f:16:4)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:47:51)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:38:13)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at wrapper (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:28:3)
at <anonymous> (localhost꞉5174/.svelte-kit/generated/root.svelte:106:12)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js:36:26)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js:36:13)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at component (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js:27:2)
at <anonymous> (localhost꞉5174/.svelte-kit/generated/root.svelte:104:12)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/if.js:64:38)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/if.js:64:25)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at if_block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/if.js:40:2)
at <anonymous> (localhost꞉5174/.svelte-kit/generated/root.svelte:93:12)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/snippet.js:68:11)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/snippet.js:48:59)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/snippet.js:48:20)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at snippet (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/snippet.js:36:2)
at _layout (localhost꞉5174/src/routes/+layout.svelte:210:4)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:47:51)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:38:13)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at wrapper (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:28:3)
at <anonymous> (localhost꞉5174/.svelte-kit/generated/root.svelte:82:6)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js:36:26)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js:36:13)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at component (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js:27:2)
at <anonymous> (localhost꞉5174/.svelte-kit/generated/root.svelte:80:6)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/if.js:64:38)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/if.js:64:25)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at if_block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dom/blocks/if.js:40:2)
at Root (localhost꞉5174/.svelte-kit/generated/root.svelte:69:6)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:47:51)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:38:13)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at block (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:338:9)
at wrapper (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/dev/hmr.js:28:3)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/render.js:228:16)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at branch (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:346:9)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/render.js:210:3)
at update_reaction (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:317:53)
at update_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/runtime.js:443:18)
at create_effect (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:125:4)
at effect_root (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/reactivity/effects.js:246:17)
at _mount (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/render.js:207:16)
at mount (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/internal/client/render.js:72:9)
at Svelte4Component (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/legacy/legacy-client.js:111:49)
at <anonymous> (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/svelte@5.1.9/node_modules/svelte/src/legacy/legacy-client.js:58:4)
at initialize (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/@sveltejs+kit@2.7.4_@sveltejs+vite-plugin-svelte@4.0.0_svelte@5.1.9_vite@5.4.10_@types+node@2_dx3jw7dlhbqf7hxyzjk2wlshuu/node_modules/@sveltejs/kit/src/runtime/client/client.js:447:9)
at navigate (/Users/scottandrew/Sources/33-Grooves/node_modules/.pnpm/@sveltejs+kit@2.7.4_@sveltejs+vite-plugin-svelte@4.0.0_svelte@5.1.9_vite@5.4.10_@types+node@2_dx3jw7dlhbqf7hxyzjk2wlshuu/node_modules/@sveltejs/kit/src/runtime/client/client.js:1421:3)

Expected behavior

I expect no crash.

Actual behavior

I am gettin the crash above.

Murderlon commented 1 day ago

Please provide a reproducible example. Here is a starter: https://stackblitz.com/edit/vitejs-vite-kdxwkz?file=package.json. You may have to update the dependencies to latest.