-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transforming JavaScript decorators to the configured target environment ("nodeXX.Y.Z") is not supported yet #393
Comments
Sounds like an esbuild limitation. Can you also file it over at https://github.com/evanw/esbuild? |
This is happening because of tsx's implementation of tsconfig. You only listed Seems TypeScript compiler constructs a dependency tree from Side note: tsx should also recommend enabling For now, you can work around this by adjusting your |
Yes, I stumbled across this 'feature' and find that it works well with
This is an interesting comment, as for a concurrent project I am investigating using a monorepo in combination with
If you eventually have a working branch or rc release that manages to allow the use of monorepos alongside the For now I confirm that |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This thread is being locked now that the bug is confirmed, and the recent conversation hasn't been productive in finding a solution. Issues is intended for reporting and fixing bugs rather than seeking one-off workarounds & help. However, if you're looking for a workaround, please read the previous conversation. |
Precheck
Problem
As requested in 348
Even when a
tsconfig.json
containing"experimentalDecorators": true
is in theroot
folder as thepackage.json
, when running the commands usingtsx
ornode
importingtsx
the following error is outputExpected behavior
I expect tsx should discover and use the
"experimentalDecorators": true
value withintsconfig.json
using either--tsconfig <path>
or theTSX_TSCONFIG_PATH
env variable.Minimal reproduction URL
https://github.com/darcyrush/tsx-min-repo
Version
4.1.2
Node.js version
21.2.0
Package manager
npm
Operating system
Linux
Contributions
The text was updated successfully, but these errors were encountered: