ts-eager icon indicating copy to clipboard operation
ts-eager copied to clipboard

Windows support?

Open lydell opened this issue 3 years ago • 1 comments

Hi! This tool is really useful. Thank you for making it!

When I try to run it on Windows I get an error:

> npx ts-eager --help
Cannot find the path.

And that’s all it says!

Note: I’m not sure of the exact phrasing of the error message in English, because it is shown in Swedish to me (“Det går inte att hitta sökvägen.”)

I mostly use macOS and Linux, but I wanted to test my package on Windows and got a bit stuck not being able to easily run my code :)

Edit: I found https://github.com/egoist/esbuild-register which solved my problem.

lydell avatar Mar 19 '22 08:03 lydell

When trying to run ts-eager on Windows using Yarn 3, I get the following error message:

...\.yarn\cache\ts-eager-npm-2.0.2-b8fedc2120-5f227c3dcb.zip\node_modules\ts-eager\bin\ts-eager.sh:2
exec node -r ts-eager/register ${1+"$@"}
     ^^^^

SyntaxError: Unexpected identifier
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)

mxro avatar Jul 23 '22 21:07 mxro