CodeSnaporazC
Deno2y ago
71 replies
CodeSnaporaz

TC39 stage 3 decorators not working anymore in Deno Deploy

As of Feb 15th, deployments to #deploy™ fail when using TC39 decorators.
Despite the decision to support legacy decorators in Deno 1.40+, see @bartlomieju 's post here https://github.com/denoland/deno/issues/19160#issuecomment-1855462766, when compiling, the
experimentalDecorators
config is ignored and I suspect any decorator, including the TS 5.0 ones, causes compilation to fail.

I'm supposed to go live in a few weeks and I my app doesn't run on Deno Deploy anymore.

https://github.com/denoland/deno/issues/19160#issuecomment-1949548670
https://github.com/denoland/deno/issues/22419
GitHub
$ deno --version deno 1.40.4 (release, x86_64-pc-windows-msvc) v8 12.1.285.6 typescript 5.3.3 The TC39 stage 3 decorators sample provided by https://deno.com/blog/v1.40#decorators does not work wit...
TC39 stage 3 decorators do not work with bundle or compile · Issue ...
GitHub
Release 1.32.0 comes with Typescript 5.0.2. But, as per notes in this PR I see no modern (stage 3) decorators support. As far as I understand, the problem is about SWC. But SWC supports them in the...
Typescript 5 decorators · Issue #19160 · denoland/deno
Was this page helpful?