Skip to content

Compilation error for CommonJs modules #422

@Goodwine

Description

@Goodwine

Hello, similar to the previous type errors in tar, I found another error when trying to compile tar in commonjs modules.

Repro gist is here:
https://gist.github.com/Goodwine/4cc0f2c078c6fb163006633c0ef48fad

Repro steps:

npm install
npx tsc

Error message:

node_modules/minizlib/dist/commonjs/index.d.ts:6:8 - error TS1192: Module '"zlib"' has no default export.

6 import realZlib from 'zlib';
         ~~~~~~~~


Found 1 error in node_modules/minizlib/dist/commonjs/index.d.ts:6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions