Title: Syntax error when using --experimental-transform-types and a decorator · Issue #54901 · nodejs/node · GitHub
Open Graph Title: Syntax error when using --experimental-transform-types and a decorator · Issue #54901 · nodejs/node
X Title: Syntax error when using --experimental-transform-types and a decorator · Issue #54901 · nodejs/node
Description: Version v22.7 Platform MacOS Subsystem No response What steps will reproduce the bug? git clone git@github.com:damianobarbati/ts-repro.git pnpm install pnpm start Is the command missing something obvious? node --no-warnings --experimenta...
Open Graph Description: Version v22.7 Platform MacOS Subsystem No response What steps will reproduce the bug? git clone git@github.com:damianobarbati/ts-repro.git pnpm install pnpm start Is the command missing something o...
X Description: Version v22.7 Platform MacOS Subsystem No response What steps will reproduce the bug? git clone git@github.com:damianobarbati/ts-repro.git pnpm install pnpm start Is the command missing something o...
Opengraph URL: https://github.com/nodejs/node/issues/54901
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Syntax error when using --experimental-transform-types and a decorator","articleBody":"### Version\n\nv22.7\n\n### Platform\n\n```text\nMacOS\n```\n\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```sh\r\ngit clone git@github.com:damianobarbati/ts-repro.git\r\npnpm install\r\npnpm start\r\n```\r\n\r\nIs the command missing something obvious?\r\n```sh\r\nnode --no-warnings --experimental-transform-types --watch ./src/index.ts\r\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nCode should run.\n\n### What do you see instead?\n\n$ pnpm start\r\n\r\nfile:///Users/damians/Desktop/ts-repro/src/Foe.ts:3\r\n @log\r\n ^\r\n\r\nSyntaxError: Invalid or unexpected token\r\n at compileSourceTextModule (node:internal/modules/esm/utils:337:16)\r\n at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)\r\n at ModuleLoader.\u003canonymous\u003e (node:internal/modules/esm/translators:540:10)\r\n at callTranslator (node:internal/modules/esm/loader:436:14)\r\n at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30)\r\n at async ModuleJob._link (node:internal/modules/esm/module_job:106:19)\r\n\r\nNode.js v22.7.0\r\nFailed running './src/index.ts'\n\n### Additional information\n\nSomething very stupid must be missing here in how I run the command?","author":{"url":"https://github.com/damianobarbati","@type":"Person","name":"damianobarbati"},"datePublished":"2024-09-12T12:57:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/54901/node/issues/54901"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c49775fd-57c5-f263-893a-fd2f30b85cc5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E068:2608B0:E96C12:146AE03:6A4BEB0E |
| html-safe-nonce | 05756e0f1d8f0be248bb33bdf3a6dcb80b92c3a2986206f2035dde5c989df88d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDY4OjI2MDhCMDpFOTZDMTI6MTQ2QUUwMzo2QTRCRUIwRSIsInZpc2l0b3JfaWQiOiI0MDMzMjA3MDkyODM5NzA1MzU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e7fbaa1a054fae784141f1884343b552e597613659da17bc878472c7bb056f92 |
| hovercard-subject-tag | issue:2522328914 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/54901/issue_layout |
| twitter:image | https://opengraph.githubassets.com/852a9e1dc88da6905579d9c4f777640c456ae6b7584781a6606a9a19390b0269/nodejs/node/issues/54901 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/852a9e1dc88da6905579d9c4f777640c456ae6b7584781a6606a9a19390b0269/nodejs/node/issues/54901 |
| og:image:alt | Version v22.7 Platform MacOS Subsystem No response What steps will reproduce the bug? git clone git@github.com:damianobarbati/ts-repro.git pnpm install pnpm start Is the command missing something o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | damianobarbati |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f24da9b76b42d77b0bb458f810509565e9ba5f1a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width