Skip to content

TypeScript error in @sentry/types introduced in 7.42.0 #7422

@HofmannZ

Description

@HofmannZ

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. bundle.tracing.min.js) in your SDK setup.

@sentry/node

SDK Version

7.42.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  1. Install @sentry/types, @sentry/tracing, @sentry/integrations and @sentry/node version 7.41.0.
  2. Init Sentry and Sentry tracing.
  3. Run a TypeScript build.
  4. See the build succeed.
  5. Install version 7.42.0.
  6. Run TypeScript build.
  7. See the build fail.

Expected Result

It should build without errors.

Actual Result

Throws the following build error:

pnpm build

> @expatfile/[email protected] build /Users/zinohofmann/Projects/github.com/expatfile/grpc-utils
> tsc -p .

node_modules/.pnpm/@[email protected]/node_modules/@sentry/types/types/instrument.d.ts:1:43 - error TS2304: Cannot find name 'BufferSource'.

1 declare type XHRSendInput = null | Blob | BufferSource | FormData | URLSearchParams | string;
                                            ~~~~~~~~~~~~

node_modules/.pnpm/@[email protected]/node_modules/@sentry/types/types/instrument.d.ts:1:58 - error TS2304: Cannot find name 'FormData'.

1 declare type XHRSendInput = null | Blob | BufferSource | FormData | URLSearchParams | string;
                                                           ~~~~~~~~

node_modules/.pnpm/@[email protected]/node_modules/@sentry/types/types/instrument.d.ts:2:54 - error TS2304: Cannot find name 'XMLHttpRequest'.

2 export interface SentryWrappedXMLHttpRequest extends XMLHttpRequest {
                                                       ~~~~~~~~~~~~~~

node_modules/.pnpm/@[email protected]/node_modules/@sentry/types/types/instrument.d.ts:19:16 - error TS2304: Cannot find name 'Response'.

19     response?: Response;
                  ~~~~~~~~


Found 4 errors in the same file, starting at: node_modules/.pnpm/@[email protected]/node_modules/@sentry/types/types/instrument.d.ts:1

 ELIFECYCLE  Command failed with exit code 1.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions