Skip to content

It looks like the new version of SvelteKit is incompatible with the @sentry/sveltekit package #13869

Closed
getsentry/sentry-javascript
#16528
@sopaco

Description

@sopaco

Describe the bug

build failure

Reproduction

  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy