TypeScript 5 Decorators #2132
-
I get /src/main.ts:25
@Controller()
^
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 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.6.0
Failed running 'src/main.ts' when running What am I missing? |
Beta Was this translation helpful? Give feedback.
Answered by
erayhanoglu
Aug 23, 2024
Replies: 1 comment 1 reply
-
UpdateSwitched to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tsx
uses eslint and do not support emitDecoratorMetadata.https://tsx.is/typescript#compiler-limitations