Skip to content

Typescript compilation error: Module '"https"' has no default export #3679

@NoNameProvided

Description

@NoNameProvided

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

6.6.0 and 6.7.0

Description

Updating @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:

node_modules/@sentry/node/dist/transports/base/http-module.d.ts:2:8 - error TS1192: Module '"http"' has no default export.

2 import http, { IncomingHttpHeaders } from 'http';
         ~~~~

node_modules/@sentry/node/dist/transports/base/http-module.d.ts:3:8 - error TS1192: Module '"https"' has no default export.

3 import https from 'https';
         ~~~~~

Found 2 errors.

We are using the latest @types/node (currently 15.12.2).

The only related change I see in the changelog is the abstraction created for the HTTP transport:

[node] ref: Make HTTPModule more abstract to be able to use it in non-Node.JS environments (#3655)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: nodeIssues related to the Sentry Node SDK

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions