Skip to content

$app/storeswill be deprecated in SvelteKit 3 (crashing already in prerelease) #22263

Description

@nmontavon

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

@sentry/sveltekit 10.65.0

Framework Version

^@sveltejs/kit@next.7

Link to Sentry event

No response

Reproduction Example/SDK Setup

Sentry.init({
dsn: PUBLIC_SENTRY_DSN,
tracesSampleRate: 1.0,
environment: PUBLIC_APP_ENV,
release: PUBLIC_RELEASE_VERSION ?? "undefined",
dist: "server",
});

Steps to Reproduce

  1. Upgrade to SvelteKit 3 prerelease 7 or newer (https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%403.0.0-next.7)
  2. launch build with sentry init
  3. 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

Additional Context

sveltejs/kit#15499

sveltejs/kit#15406

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

Fields

No fields configured for issues without a type.

Projects

Status
Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions