-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
TypeScript error in @sentry/types introduced in 7.42.0 #7422
Copy link
Copy link
Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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
- Install
@sentry/types,@sentry/tracing,@sentry/integrationsand@sentry/nodeversion7.41.0. - Init Sentry and Sentry tracing.
- Run a TypeScript build.
- See the build succeed.
- Install version
7.42.0. - Run TypeScript build.
- See the build fail.
Expected Result
It should build without errors.
Actual Result
Throws the following build error:
pnpm build
> @expatfile/grpc-utils@0.0.0-development build /Users/zinohofmann/Projects/github.com/expatfile/grpc-utils
> tsc -p .
node_modules/.pnpm/@sentry+types@7.42.0/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/@sentry+types@7.42.0/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/@sentry+types@7.42.0/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/@sentry+types@7.42.0/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/@sentry+types@7.42.0/node_modules/@sentry/types/types/instrument.d.ts:1
ELIFECYCLE Command failed with exit code 1.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Fields
Give feedbackNo fields configured for issues without a type.