privatenumber / tsx

⚡️ TypeScript Execute | The easiest way to run TypeScript in Node.js
https://tsx.is
MIT License
8.61k stars 132 forks source link

Getting `SyntaxError: The requested module 'x' does not provide an export named 'x'` with tsx 4.13.1 #576

Closed acelaya closed 3 weeks ago

acelaya commented 3 weeks ago

Acknowledgements

Minimal reproduction URL

I'm building a simple reproduction repo. I'll update this issue as soon as I have it

Problem & expected behavior (under 200 words)

I updated from tsx 4.11.0 to 4.13.1, and then started to get errors like SyntaxError: The requested module 'esbuild' does not provide an export named 'build' or SyntaxError: The requested module 'remix-auth' does not provide an export named 'Authenticator' when running tsx some-script.ts.

I went back individual versions until I was able to see everything works as expected with v4.13.0, but it fails with v4.13.1, so I guess the regression should be in https://github.com/privatenumber/tsx/commit/0a78bfd11b20fcb6460fdcdea7d3b1daebfe3ad0

Bugs are expected to be fixed by those affected by it

Compensating engineering work financially will speed up resolution

acelaya commented 3 weeks ago

I was about to provide the reproduction, but just noticed someone else did already https://github.com/privatenumber/tsx/issues/578

Let's keep this issue closed and follow-up there