Skip to content

10.68.0 pinned @apm-js-collab/code-transformer-bundler-plugins@0.7.1 causing type errors #22646

Description

@AviVahl

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

mkdir sentry-node-broken-types
cd sentry-node-broken-types
npm init -y
npm pkg set type=module
npm i typescript @sentry/node @types/node@24
npx tsc --init --skipLibCheck false --types node
echo "import * as sentry from '@sentry/node'; console.log(sentry);" > main.ts
npx tsc --noEmit

Expected Result

no type errors when using with latest typescript version and modern tsconfig

Actual Result

@apm-js-collab/code-transformer-bundler-plugins@0.7.1 has type errors:

node_modules/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/core.d.cts:95:72 - error TS2307: Cannot find module './instrumentation-serde' or its corresponding type declarations.

95 export { serializeInstrumentations, deserializeInstrumentations } from './instrumentation-serde';
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/core.d.cts:96:101 - error TS2307: Cannot find module './instrumentation-serde' or its corresponding type declarations.

96 export type { SerializedRegExp, SerializableInstrumentationConfig, AnyInstrumentationConfig, } from './instrumentation-serde';
                                                                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~


Found 2 errors in the same file, starting at: node_modules/@apm-js-collab/code-transformer-bundler-plugins/dist/cjs/core.d.cts:95

Additional Context

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