Skip to content

It looks like the new version of Svelte is incompatible with the @sentry/sveltekit package. Removing the latter allows for successful compilation. #16507

Closed
@sopaco

Description

@sopaco

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

9.27.0

Framework Version

5.33.18

Link to Sentry event

No response

Reproduction Example/SDK Setup

  1. clone the project: https://github.com/sopaco/saga-reader.git.
  2. execute bun run dev.

Logs

build

 [18 lines elided]
│       at emitError (node:events:1:13)
│ ✗ Build failed in 6.72s
│ error during build:
│ [vite-plugin-sveltekit-compile] Failed with code 1
│     at <anonymous> (/Users/jiangmeng/workspace/research/saga-reader/node_modules/@sveltejs/kit/src/utils/fork.js:65:17)
│     at emit (node:events:93:22)
│     at #onClose (node:worker_threads:216:44)
│ error: script "build" exited with code 1
│ beforeBuildCommand `bun run build` failed with exit code 1
│        Error beforeBuildCommand `bun run build` failed with exit code 1

dev

│ [219 lines elided]
│ 5021 |  */
│ 5022 | function originalPositionFor$1(map, needle) {
│ 5023 |     let { line, column, bias } = needle;
│ 5024 |     line--;
│ 5025 |     if (line < 0)
│ 5026 |         throw new Error(LINE_GTR_ZERO);
│                          ^
│ error: `line` must be greater than 0 (lines start at line 1)
│       at originalPositionFor$1 (/Users/Workspace/research/saga-reader/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:5026:19)

System Info

npx envinfo --system --npmPackages svelte,rollup,webpack --binaries --browsers

  System:
    OS: macOS 14.5
    CPU: (12) arm64 Apple M2 Pro
    Memory: 790.73 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
    npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
    bun: 1.2.15 - ~/.bun/bin/bun
  Browsers:
    Edge: 134.0.3124.51
    Safari: 17.5

Severity

annoyance

Steps to Reproduce

  1. clone the project: https://github.com/sopaco/saga-reader.git.
  2. execute bun run dev.

Expected Result

build successful

Actual Result

build failure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions