Title: Typescript compilation error: Module '"https"' has no default export · Issue #3679 · getsentry/sentry-javascript · GitHub
Open Graph Title: Typescript compilation error: Module '"https"' has no default export · Issue #3679 · getsentry/sentry-javascript
X Title: Typescript compilation error: Module '"https"' has no default export · Issue #3679 · getsentry/sentry-javascript
Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Provide a link to the aff...
Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3679
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Typescript compilation error: Module '\"https\"' has no default export","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [ ] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n- [ ] `@sentry/browser`\r\n- [x] `@sentry/node`\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [ ] other:\r\n\r\n### Version:\r\n\r\n```\r\n6.6.0 and 6.7.0\r\n```\r\n\r\n## Description\r\n\r\nUpdating `@sentry/node` from `6.5.1` to `6.6.0` or current latest `6.7.0` in Typescript projects breaks the compilation with the following two errors:\r\n\r\n```\r\nnode_modules/@sentry/node/dist/transports/base/http-module.d.ts:2:8 - error TS1192: Module '\"http\"' has no default export.\r\n\r\n2 import http, { IncomingHttpHeaders } from 'http';\r\n ~~~~\r\n\r\nnode_modules/@sentry/node/dist/transports/base/http-module.d.ts:3:8 - error TS1192: Module '\"https\"' has no default export.\r\n\r\n3 import https from 'https';\r\n ~~~~~\r\n\r\nFound 2 errors.\r\n```\r\n\r\nWe are using the latest `@types/node` (currently `15.12.2`).\r\n\r\nThe only related change I see in the changelog is the abstraction created for the HTTP transport: \r\n\r\n> [node] ref: Make HTTPModule more abstract to be able to use it in non-Node.JS environments (#3655)\r\n\r\n","author":{"url":"https://github.com/NoNameProvided","@type":"Person","name":"NoNameProvided"},"datePublished":"2021-06-15T10:15:02Z","url":"https://github.com/getsentry/sentry-javascript/issues/3679"}
| 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:78ccd714-187a-2550-cc73-dc88b601631f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C5E:3D680A:3A8845:50CA26:6B0451C3 |
| html-safe-nonce | 67501aeef5954da55a69b9a7a4f56f2aefa3ae0b27b55557a88939fde1fc1c4c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzVFOjNENjgwQTozQTg4NDU6NTBDQTI2OjZCMDQ1MUMzIiwidmlzaXRvcl9pZCI6IjY1MzQwNjM4MDA4MDk5NjgwNjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e61c7f511493fbe0fa3aa9123c2de216e9c7962a76ea06d4baa491eda892e1c3 |
| hovercard-subject-tag | issue:921237702 |
| 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/3679/issue_layout |
| twitter:image | https://opengraph.githubassets.com/63e2de36b4c57999811ebb1ad9f8a12593b73e9f7522c6d04b39c7622ad1b87a/getsentry/sentry-javascript/issues/3679 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/63e2de36b4c57999811ebb1ad9f8a12593b73e9f7522c6d04b39c7622ad1b87a/getsentry/sentry-javascript/issues/3679 |
| og:image:alt | Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NoNameProvided |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| 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 | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| 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