Acknowledgements
Minimal reproduction URL
https://github.com/andreww2012/tsx-doesnt-support-tsconfig-paths-with-colons
Problem & expected behavior (under 200 words)
Hello. It seems like tsx is not able to properly handle TypeScript path aliases containing a colon. My IDE (VSCode) and tsc are able to resolve such paths.
In the reproduction, run npx tsx a-fail.ts to get the error:
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'a:'
On the contrary, running npx tsx a-ok.ts would execute the code successfully.
Bugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project
Acknowledgements
Minimal reproduction URL
https://github.com/andreww2012/tsx-doesnt-support-tsconfig-paths-with-colons
Problem & expected behavior (under 200 words)
Hello. It seems like tsx is not able to properly handle TypeScript path aliases containing a colon. My IDE (VSCode) and
tscare able to resolve such paths.In the reproduction, run
npx tsx a-fail.tsto get the error:On the contrary, running
npx tsx a-ok.tswould execute the code successfully.Bugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project