We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Typescript 4.9 introduced a new keyword accessor to automatically make a property private and generate its accessors.
accessor
If I try to compile code that uses this keyword, I get the following error:
$ tsup src/index.ts --format esm --dts --clean CLI Building entry: src/index.ts CLI Using tsconfig: tsconfig.json CLI tsup v6.6.3 CLI Target: es2022 CLI Cleaning output folder ESM Build start ✘ [ERROR] Expected ";" but found "fieldName"
I rewrote my code to not use the keyword and it compiles perfectly.
Also, I compiled the code containing the keyword accessor using tsc and it is compiled properly.
tsc
So I suppose it's a compatibility issue with the last version of Typescript?
The text was updated successfully, but these errors were encountered:
I can reproduce
Sorry, something went wrong.
This issue was resloved last week.
No branches or pull requests
Typescript 4.9 introduced a new keyword
accessor
to automatically make a property private and generate its accessors.If I try to compile code that uses this keyword, I get the following error:
I rewrote my code to not use the keyword and it compiles perfectly.
Also, I compiled the code containing the keyword
accessor
usingtsc
and it is compiled properly.So I suppose it's a compatibility issue with the last version of Typescript?
Upvote & Fund
The text was updated successfully, but these errors were encountered: