-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Closed as not planned
Closed as not planned
Copy link
Labels
invalidIssues and PRs that are invalid.Issues and PRs that are invalid.wontfixIssues that will not be fixed.Issues that will not be fixed.
Description
Version
v22.7
Platform
MacOS
Subsystem
No response
What steps will reproduce the bug?
git clone [email protected]:damianobarbati/ts-repro.git
pnpm install
pnpm start
Is the command missing something obvious?
node --no-warnings --experimental-transform-types --watch ./src/index.ts
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
Code should run.
What do you see instead?
$ pnpm start
file:///Users/damians/Desktop/ts-repro/src/Foe.ts:3
@log
^
SyntaxError: Invalid or unexpected token
at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)
at ModuleLoader. (node:internal/modules/esm/translators:540:10)
at callTranslator (node:internal/modules/esm/loader:436:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30)
at async ModuleJob._link (node:internal/modules/esm/module_job:106:19)
Node.js v22.7.0
Failed running './src/index.ts'
Additional information
Something very stupid must be missing here in how I run the command?
Metadata
Metadata
Assignees
Labels
invalidIssues and PRs that are invalid.Issues and PRs that are invalid.wontfixIssues that will not be fixed.Issues that will not be fixed.