ERR_INTERNAL_ASSERTION when loading ESM from CJS after compiling with tsc
#54923
Labels
duplicate
Issues and PRs that are duplicates of other issues or PRs.
tsc
#54923
Version
v22.8.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Compiling a TS file with
tsc
that uses both require and import produces something like this:Original TS file:
My vendor structure is:
File
./vendor/mmdb-lib-2.1.1/index.js
contains:How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
No internal assertion should happen
What do you see instead?
Internal assertion happens:
Additional information
No response
The text was updated successfully, but these errors were encountered: