You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened: My reproduction example produces the expected output with Node 18, but not with Node 20. This happens since tsx version 4.12.0. The README.MD file contains a test case to confirm this.
What I expected: That all variant*.ts files would always log 2 - regardless of it's module type in the package.json or NodeJS / tsx version.
privatenumber
changed the title
Dynamic imports in CJS modules cause severe mistakes in runtime behavior with Node 20import() in CommonJS creates a different copy module
Jun 14, 2024
Acknowledgements
Minimal reproduction URL
https://github.com/jochenschmich-aeberle/tsx-dynamic-import-error
Problem & expected behavior (under 200 words)
tsx
version4.12.0
. The README.MD file contains a test case to confirm this.variant*.ts
files would always log2
- regardless of it's module type in thepackage.json
or NodeJS / tsx version.Bugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project
The text was updated successfully, but these errors were encountered: