You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue I'm facing is decorated declare or abstract fields are causing an Error: Decorators are not valid here. After some inspection it seems that esbuild supported this until version 0.19.8
Using decorators like this is legacy TypeScript-specific behavior that requires you to set "experimentalDecorators": true in your tsconfig.json file. You can do this on esbuild's command line with --tsconfig-raw='{"compilerOptions":{"experimentalDecorators":true}}' like this.
This currently only works for declare fields, not for abstract fields. This is an esbuild bug that I can fix (I didn't think about the abstract case).
The issue I'm facing is decorated declare or abstract fields are causing an
Error: Decorators are not valid here
. After some inspection it seems thatesbuild
supported this until version0.19.8
Is this no longer supported?
Code example:
Esbuild result:
Some playground links:
Working esbuild-playground on version 0.19.7
typescript-playground
The text was updated successfully, but these errors were encountered: