Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion docs/platforms/javascript/guides/svelte/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,18 @@ Once you've done this, the SDK will automatically capture unhandled errors and p

This snippet includes an intentional error, so you can test that everything is working as soon as you set it up.

```jsx {tabTitle:Svelte} {filename:SomeCmponent.svelte}
```jsx {tabTitle:Svelte v5+} {filename:SomeCmponent.svelte}
<button
type="button"
onclick={() => {
throw new Error("Sentry Frontend Error");
}}
>
Throw error
</button>
```

```jsx {tabTitle:Svelte v3/v4} {filename:SomeCmponent.svelte}
<button
type="button"
on:click={() => {
Expand Down