Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

something is colossaly f***** up in the exports for version 3.1.0 #340

Open
philkunz opened this issue Apr 30, 2024 · 2 comments
Open

something is colossaly f***** up in the exports for version 3.1.0 #340

philkunz opened this issue Apr 30, 2024 · 2 comments

Comments

@philkunz
Copy link

Why is the default module suddenly 1.75MB and has no default export?

@abrenoch
Copy link

abrenoch commented May 1, 2024

Unfortunately 3.1.1 is giving us trouble as well:

C:\...\node_modules\ts-node\dist\index.js:851
            return old(m, filename);
                   ^
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\...\node_modules\pdf2json\dist\pdfparser.js from C:\...\src\my-file.ts not supported.
Instead change the require of pdfparser.js in C:\...\src\my-file.ts to a dynamic import() which is available in all CommonJS modules.
    at require.extensions.<computed> [as .js] (C:\...\node_modules\ts-node\dist\index.js:851:20)
    at Object.<anonymous> (C:\...\src\my-file.ts:8:44)
    at m._compile (C:\...\node_modules\ts-node\dist\index.js:857:29) {
  code: 'ERR_REQUIRE_ESM'
}

3.0.5 seems to be fine

@greguz
Copy link

greguz commented May 10, 2024

I can confirm this colossally on-point Issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants