privatenumber / tsx

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

`ERR_UNSUPPORTED_ESM_URL_SCHEME` when running tsx watch on windows and importing using `await import(path)` #667

Open TheDogHusky opened 2 hours ago

TheDogHusky commented 2 hours ago

Acknowledgements

Minimal reproduction URL

https://github.com/TheDogHusky/tsx-issue-import

Problem & expected behavior (under 200 words)

The README from the minimal reproduction repo should explain in enough details.

Bugs are expected to be fixed by those affected by it

Compensating engineering work will speed up resolution and support the project

TheDogHusky commented 2 hours ago

I precedently made an issue (https://github.com/privatenumber/tsx/issues/650) but couldn't figure out the cause of the error, now I figured it out, and am submitting an issue here.