-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 #3496
Comments
If you run your code through esbuild without tsx involved then it works fine: https://esbuild.github.io/try/#dAAwLjE5LjUAewogIGxvYWRlcjogJ3RzJywKICB0YXJnZXQ6IFsnbm9kZTIxLjIuMCddLAogIHRzY29uZmlnUmF3OiB7CiAgICBjb21waWxlck9wdGlvbnM6IHsKICAgICAgZXhwZXJpbWVudGFsRGVjb3JhdG9yczogdHJ1ZSwKICAgIH0sCiAgfSwKfQBpbXBvcnQgeyBDb250cm9sbGVyLCBHZXQgfSBmcm9tICJAbmVzdGpzL2NvbW1vbiIKCkBDb250cm9sbGVyKCkKZXhwb3J0IGNsYXNzIEhlYWx0aENvbnRyb2xsZXIgewogIEBHZXQoJ2hlYWx0aC9yZWFkaW5lc3MnKQogIGFzeW5jIHJlYWRpbmVzcygpOiBQcm9taXNlPHZvaWQ+IHsgfQp9. I only get that error if I set |
Confirming it's an issue with tsx. Sorry about the oversight. |
No problem! |
@privatenumber How did you end up resolving this? Edit: Ah, I see you're the creator of TSX and it's on the roadmap. @darcyrush Did you find a workaround? Further edit: Never mind, here's the relevant discussion: privatenumber/tsx#393 (comment) |
I already checked 3482 and filed an issue with tsx (which uses esbuild under the hood), who in turn requested to file the issue here.
I am using the
nestjs
framework's decorators along withtsx
and atsconfig.json
with"experimentalDecorators": true
but the issue persists.I am using
node
21.2.0
andtsx
4.1.2
on linux.Here is a minimal reproduction repository
The text was updated successfully, but these errors were encountered: