Official TypeScript Decorators and --experimental-strip-types not working #54273
-
Official TypeScript Decorators and --experimental-strip-types not working. I get /nest-no-param-dec/src/main.ts:28
@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 ModuleLoader.<anonymous> (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.6.0
Failed running 'src/main.ts' while using It works as expected using Is this flag telling Node to use typescript 5.5.4 for the transpilation or not? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
UpdateNevermind. It throws the same error when using |
Beta Was this translation helpful? Give feedback.
-
experimental type stripping does not currently support decorators. |
Beta Was this translation helpful? Give feedback.
experimental type stripping does not currently support decorators.
CC @marco-ippolito