Skip to content

Deno 2.8.0 compatibility #21142

Closed
Closed

Description

@Webcretaire

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/deno

SDK Version

10.53.1

Framework Version

2.8.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

Hello, thanks for this great library

Deno recently released version 2.8.0, which breaks the Sentry SDK if I'm not mistaken : simply initializing Sentry gives an error and crashes the script

The exact same code was working well with Deno 2.7.14

Steps to Reproduce

  1. Put the following content in a TS file :
import * as Sentry from "@sentry/deno";

Sentry.init({
  dsn: "<< myDsn >>",
  release: "myRelease",
  environment: "myEnvironment",
  sendDefaultPii: true,
  debug: true,
  skipOpenTelemetrySetup: true
});
  1. Run with deno run -A myscript.ts (on latest Deno 2.8.0)

Expected Result

No error, Sentry initializes

Actual Result

The following error in terminal :

Sentry Logger [log]: Integration installed: InboundFilters
Sentry Logger [log]: Integration installed: RequestData
Sentry Logger [log]: Integration installed: FunctionToString
Sentry Logger [log]: Integration installed: LinkedErrors
Sentry Logger [log]: Integration installed: Dedupe
Sentry Logger [log]: Integration installed: Breadcrumbs
Sentry Logger [log]: Integration installed: DenoContext
error: Uncaught (in promise) TypeError: Cannot set property serve of #<Object> which has only a getter
    at Object.setupOnce (file:///my_source_folder/node_modules/.deno/@[email protected]/node_modules/@sentry/deno/build/esm/integrations/deno-serve.js:52:12)
    at setupIntegration (file:///my_source_folder/node_modules/.deno/@[email protected]/node_modules/@sentry/core/build/esm/integration.js:118:104)
    at file:///my_source_folder/node_modules/.deno/@[email protected]/node_modules/@sentry/core/build/esm/integration.js:89:7
    at Array.forEach (<anonymous>)
    at setupIntegrations (file:///my_source_folder/node_modules/.deno/@[email protected]/node_modules/@sentry/core/build/esm/integration.js:86:16)
    at DenoClient._setupIntegrations (file:///my_source_folder/node_modules/.deno/@[email protected]/node_modules/@sentry/core/build/esm/client.js:1215:20)
    at DenoClient.init (file:///my_source_folder/node_modules/.deno/@[email protected]/node_modules/@sentry/core/build/esm/client.js:490:12)
    at initAndBind (file:///my_source_folder/node_modules/.deno/@[email protected]/node_modules/@sentry/core/build/esm/sdk.js:37:10)
    at Module.init (file:///my_source_folder/node_modules/.deno/@[email protected]/node_modules/@sentry/deno/build/esm/sdk.js:111:18)
    at file:///my_source_folder/src/test.ts:3:8

Additional Context

No response

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Activity

  1. linear-code commented on May 22, 2026

    @linear-code
  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 22, 2026
  3. added a commit that references this issue on May 23, 2026
  4. self-assigned this
    on May 25, 2026
  5. logaretm commented on May 25, 2026

    @logaretm
    Member

    Thanks for reporting this, I have a fix in PR right now

  6. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 25, 2026
  7. added a commit that references this issue on May 26, 2026
    d16a889
  8. github-actions commented on May 26, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #21155, which was included in the 10.54.0 release.

  9. added a commit that references this issue on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions