Skip to content

Add Sentry#714

Closed
Wituareard wants to merge 1 commit intomainfrom
sentry
Closed

Add Sentry#714
Wituareard wants to merge 1 commit intomainfrom
sentry

Conversation

@Wituareard
Copy link
Copy Markdown
Collaborator

@Wituareard Wituareard commented Mar 31, 2026

Resolves #707

Configuration:

  • Tracing: yes
  • Session Replay: no (increases bundle size)
  • Logs: yes

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 31, 2026

Deploy Preview for pauseai failed.

Name Link
🔨 Latest commit 4287866
🔍 Latest deploy log https://app.netlify.com/projects/pauseai/deploys/69cbbdf68c03890007e12070

@Wituareard
Copy link
Copy Markdown
Collaborator Author

Wituareard commented Mar 31, 2026

The SvelteKit Sentry SDK is designed to work out of the box with several SvelteKit adapters and their underlying server runtimes. Here's an overview of the current support:

Fully supported Node.js runtimes
Adapter-auto for Vercel; other Node.js-based platforms might work, but we don't guarantee compatibility at this time
Adapter-vercel when used with Vercel's Node.js Lambda runtime
Adapter-node
Supported non-Node.js runtimes
Adapter-cloudflare requires additional setup
Currently not supported
Non-Node.js server runtimes, such as Vercel's edge runtime, are not yet supported.
Other adapters
Other SvelteKit adapters might work, but they're not currently officially supported. We're looking into extending first-class support to more adapters in the future.

https://docs.sentry.io/platforms/javascript/guides/sveltekit/

@anthonybailey
Copy link
Copy Markdown
Collaborator

You'll have seen the error, but I do understand it should work with netlify-adapter

Can I check, did you use the intended npx @sentry/wizard@latest -i sveltekit to scaffold?

@Wituareard
Copy link
Copy Markdown
Collaborator Author

When you say "I do understand it should work", is that based on the quote or is it separate knowledge? Because to me it seems to imply that edge runtimes aren't supported.

I did use the installation wizard.

@anthonybailey
Copy link
Copy Markdown
Collaborator

I confirm this is mostly vibes. I did wonder if Deno could be a problem. But the exact failure seemed very specific 1:29:12 PM: > Using @sveltejs/adapter-netlify 1:29:12 PM: ✘ [ERROR] Could not resolve "$app/stores" so I guessed we might be exposing an existing misconfiguration.

@RisingOrange
Copy link
Copy Markdown
Contributor

It looks like @sentry/sveltekit doesn't support non-Node.js edge runtimes. From the Sentry SvelteKit docs:

Currently not supported: Non-Node.js server runtimes, such as Vercel's edge runtime, are not yet supported.

An alternative approach: use @sentry/svelte (client), @sentry/deno (server), and @sentry/vite-plugin (source maps) instead of the all-in-one @sentry/sveltekit.

Created a PR for that: #719

@Wituareard
Copy link
Copy Markdown
Collaborator Author

Closing in favor of #719

@Wituareard Wituareard closed this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add error monitoring

3 participants