Title: TypeScript error in @sentry/types introduced in 7.42.0 · Issue #7422 · getsentry/sentry-javascript · GitHub
Open Graph Title: TypeScript error in @sentry/types introduced in 7.42.0 · Issue #7422 · getsentry/sentry-javascript
X Title: TypeScript error in @sentry/types introduced in 7.42.0 · Issue #7422 · getsentry/sentry-javascript
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/...
Open Graph 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 th...
X 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 th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7422
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeScript error in @sentry/types introduced in 7.42.0","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### 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.\n\n@sentry/node\n\n### SDK Version\n\n7.42.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n_No response_\n\n### Steps to Reproduce\n\n1. Install `@sentry/types`, `@sentry/tracing`, `@sentry/integrations` and `@sentry/node` version `7.41.0`.\r\n2. Init Sentry and Sentry tracing.\r\n3. Run a TypeScript build.\r\n4. See the build succeed.\r\n5. Install version `7.42.0`.\r\n6. Run TypeScript build.\r\n7. See the build fail.\n\n### Expected Result\n\nIt should build without errors.\n\n### Actual Result\n\nThrows the following build error:\r\n\r\n```\r\npnpm build\r\n\r\n> @expatfile/grpc-utils@0.0.0-development build /Users/zinohofmann/Projects/github.com/expatfile/grpc-utils\r\n> tsc -p .\r\n\r\nnode_modules/.pnpm/@sentry+types@7.42.0/node_modules/@sentry/types/types/instrument.d.ts:1:43 - error TS2304: Cannot find name 'BufferSource'.\r\n\r\n1 declare type XHRSendInput = null | Blob | BufferSource | FormData | URLSearchParams | string;\r\n ~~~~~~~~~~~~\r\n\r\nnode_modules/.pnpm/@sentry+types@7.42.0/node_modules/@sentry/types/types/instrument.d.ts:1:58 - error TS2304: Cannot find name 'FormData'.\r\n\r\n1 declare type XHRSendInput = null | Blob | BufferSource | FormData | URLSearchParams | string;\r\n ~~~~~~~~\r\n\r\nnode_modules/.pnpm/@sentry+types@7.42.0/node_modules/@sentry/types/types/instrument.d.ts:2:54 - error TS2304: Cannot find name 'XMLHttpRequest'.\r\n\r\n2 export interface SentryWrappedXMLHttpRequest extends XMLHttpRequest {\r\n ~~~~~~~~~~~~~~\r\n\r\nnode_modules/.pnpm/@sentry+types@7.42.0/node_modules/@sentry/types/types/instrument.d.ts:19:16 - error TS2304: Cannot find name 'Response'.\r\n\r\n19 response?: Response;\r\n ~~~~~~~~\r\n\r\n\r\nFound 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\r\n\r\n ELIFECYCLE Command failed with exit code 1.\r\n```","author":{"url":"https://github.com/HofmannZ","@type":"Person","name":"HofmannZ"},"datePublished":"2023-03-11T10:40:04Z","url":"https://github.com/getsentry/sentry-javascript/issues/7422"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2888852c-2fc4-7ac7-ea80-54c5fb6ba90a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C548:3D1E6D:3119AF:4352DC:6B04BA18 |
| html-safe-nonce | 82a91ad47404898fd1ff85eaa5090547cb3b8390c8fa67d819e6cdfe0dbad919 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTQ4OjNEMUU2RDozMTE5QUY6NDM1MkRDOjZCMDRCQTE4IiwidmlzaXRvcl9pZCI6IjE2ODk0NDgzMzk5ODIzMDE3MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 57e7cf4932ba01461158a304e571f7c186bbab74dea571e97937fe6f80809b37 |
| hovercard-subject-tag | issue:1619962907 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/7422/issue_layout |
| twitter:image | https://opengraph.githubassets.com/90287049076fc28cd04ab92e5681f3e784d84d18a88b708b64ea2b0e6f48f0b6/getsentry/sentry-javascript/issues/7422 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/90287049076fc28cd04ab92e5681f3e784d84d18a88b708b64ea2b0e6f48f0b6/getsentry/sentry-javascript/issues/7422 |
| og:image:alt | 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 th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HofmannZ |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b032e77f1ea437ede6c115446a0a467709b468e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width