You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
$app/storeswill be deprecated in SvelteKit 3 (crashing already in prerelease) #22263
build succeeds, but crashes client-side in browser:
Uncaught (in promise) Error: $app/storeshas been removed in favour of$app/state. See https://svelte.dev/docs/kit/migrating-to-sveltekit-2#SvelteKit-2.12:-$app-stores-deprecated
Expected Result
Migration to $app/state and deprecate Svelte 4 support.
Actual Result
Uncaught (in promise) Error: $app/storeshas been removed in favour of$app/state. See https://svelte.dev/docs/kit/migrating-to-sveltekit-2#SvelteKit-2.12:-$app-stores-deprecated
Confirmed. @sentry/sveltekit imports page and navigating from $app/stores in packages/sveltekit/src/client/browserTracingIntegration.ts. SvelteKit 3 prerelease 7 removed that module in favor of $app/state, a migration the codebase already has TODO(v11) notes for.
What I checked:
packages/sveltekit/src/client/browserTracingIntegration.ts is the only production file importing $app/stores
peerDependencies currently locks @sveltejs/kit to 2.x
Activity
linear-code commentedon Jul 14, 2026
JS-3043
sentry-pierre commentedon Jul 14, 2026
Confirmed.
@sentry/sveltekitimportspageandnavigatingfrom$app/storesinpackages/sveltekit/src/client/browserTracingIntegration.ts. SvelteKit 3 prerelease 7 removed that module in favor of$app/state, a migration the codebase already hasTODO(v11)notes for.What I checked:
packages/sveltekit/src/client/browserTracingIntegration.tsis the only production file importing$app/storespeerDependenciescurrently locks@sveltejs/kitto2.xA maintainer can take it from here.
Lms24 commentedon Jul 14, 2026
Thanks for writing in! This is already tracked in #18853. We'll fix this in the next major version of the SDK (#22056)
@sentry/svelteand@sentry/sveltekit#18853nmontavon commentedon Jul 14, 2026
Ah nice, thanks - good to know!
I'd advise keeping this issue open until then - SvelteKit 3 seems right around the corner and others may find this useful here.
Lms24 commentedon Jul 14, 2026
yeah I also realized the linked issue doesn't mention sveltekit 3 specifically, so it's still valid to keep this tracked.
Also wondering if we can find a workaround for the current major version of the SDK. I'll forward this internally.
fix(sveltekit): Support browser tracing with SvelteKit 3
fix(sveltekit): Support browser tracing with SvelteKit 3
feat(sveltekit): Support browser tracing with SvelteKit 3 (#22264)
github-actions commentedon Jul 20, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #22264, which was included in the 10.67.0 release.