Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomchv/tsx-repro-regression-decorator-error
https://github.com/tomchv/tsx-repro-regression-decorator-error
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomchv/tsx-repro-regression-decorator-error
- Owner: TomChv
- License: mit
- Created: 2024-06-07T17:40:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-07T17:49:56.000Z (8 months ago)
- Last Synced: 2024-10-14T21:57:55.383Z (3 months ago)
- Language: TypeScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Repro
```
ERROR: Transforming JavaScript decorators to the configured target environment ("node21.3.0") is not supported yet
ERROR: Transforming JavaScript decorators to the configured target environment ("node22.2.0") is not supported yet
```## Setup
- Node: I tested with Node `v21.3.0` & `v22.2.0`, same error
- TSX: Code work with `v4.13.0` but start failing after, my repro is with the latest version `v4.13.2`.## Steps to repro
```shell
tsx --version
# tsx v4.13.2
# node v22.2.0tsx src/index.ts
# node:internal/modules/run_main:115
# triggerUncaughtException(
# ^
# Error [TransformError]: Transform failed with 1 error:
# github.com/TomChv/tsx-repro-regression-decorator-error/src/index.ts:13:0: ERROR: Transforming JavaScript decorators to the configured target environment ("node22.2.0") is not supported yet
```Same with node `v21.3.0`
```shell
tsx --version
# tsx v4.13.2
# node v21.3.0tsx src/index.ts
#
# node:internal/process/esm_loader:34
# internalBinding('errors').triggerUncaughtException(
# ^
# Error [TransformError]: Transform failed with 1 error:
# github.com/quartz-technology/playground/ts-decs-error/dagger/src/index.ts:13:0: ERROR: Transforming JavaScript decorators to the configured target environment ("node21.3.0") is not supported yet
```## Works with `v4.13.0`
```shell
tsx --version
# tsx v4.13.0
# node v21.3.0tsx src/index.ts
# a
```## Complete error traces
```shell
github.com/TomChv/tsx-repro-regression-decorator-error/src/index.ts:13:0: ERROR: Transforming JavaScript decorators to the configured target environment ("node21.3.0") is not supported yet
at failureErrorWithLog (.nvm/versions/node/v21.3.0/lib/node_modules/tsx/node_modules/esbuild/lib/main.js:1651:15)
at .nvm/versions/node/v21.3.0/lib/node_modules/tsx/node_modules/esbuild/lib/main.js:849:29
at responseCallbacks. (.nvm/versions/node/v21.3.0/lib/node_modules/tsx/node_modules/esbuild/lib/main.js:704:9)
at handleIncomingPacket (.nvm/versions/node/v21.3.0/lib/node_modules/tsx/node_modules/esbuild/lib/main.js:764:9)
at Socket.readFromStdout (.nvm/versions/node/v21.3.0/lib/node_modules/tsx/node_modules/esbuild/lib/main.js:680:7)
at Socket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
```