Skip to content

#22497 introduces .d.ts TSC error #22626

Description

@aguo-ntech

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/node

SDK Version

10.68.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

Upgraded @sentry/node from 10.67.0 to 10.68.0.

In #22497, @nicohrubec downgraded @apm-js-collab/code-transformer-bundler-plugins from 0.7.2 to 0.7.1. However, 0.7.1 includes a TS error in its .d.ts files, which 0.7.2 fixes. Therefore, by downgrading the transitive dependency, this means that @sentry/node@10.68.0 -> @sentry/server-utils@10.68.0 introduces TS errors into my build.

It appears that @nicohrubec was trying to fix for TS 3.8 in #22497, which breaks newer versions of TS, which I don't think is a good tradeoff.

Expected Result

No TS errors.

Actual Result

TS errors.

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions