Official Sentry SDK for SvelteKit
November 24, 2025 ยท View on GitHub
Official Sentry SDK for SvelteKit
Compatibility
The minimum supported version of SvelteKit is 2.0.0. The SDK works best with Vite 4.2 and newer. Older Vite versions
might not generate source maps correctly.
Check our docs for SvelteKit adapter compatibility.
General
This package is a wrapper around @sentry/node for the server and @sentry/svelte for the client side, with added
functionality related to SvelteKit.
Installation
To get started installing the SDK, use the Sentry Next.js Wizard by running the following command in your terminal or read the Getting Started Docs:
npx @sentry/wizard@latest -i sveltekit
The wizard will guide you throuhg logging in to Sentry and setting up the SDK. After the wizard setup is completed, the SDK will automatically capture unhandled errors, and optionally, traces and replays.