Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot analyze code with @ decorator #140

Open
h4ckm03d opened this issue Jul 25, 2024 · 1 comment
Open

Cannot analyze code with @ decorator #140

h4ckm03d opened this issue Jul 25, 2024 · 1 comment

Comments

@h4ckm03d
Copy link

for example :

import { IsNumber, IsOptional } from 'class-validator';

export class RulesReward {
  @IsNumber()
  @IsOptional()
  points?: number;
}

image

@sgb-io
Copy link
Owner

sgb-io commented Jul 25, 2024

Thanks for reporting. Indeed it seems that the current versions of the swc libs do not support this syntax yet. Some brief research tells me this is quite a new language feature and has poor browser support and a lack of Node support too.

Similar to #114

To get this working a fresh attempt using latest swc libraries should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants