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

accessor keyword not supported #839

Open
Coniface opened this issue Feb 17, 2023 · 2 comments
Open

accessor keyword not supported #839

Coniface opened this issue Feb 17, 2023 · 2 comments

Comments

@Coniface
Copy link

Coniface commented Feb 17, 2023

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:

$ 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.

So I suppose it's a compatibility issue with the last version of Typescript?

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@A7mooz
Copy link

A7mooz commented Jun 8, 2023

I can reproduce

@A7mooz
Copy link

A7mooz commented Jun 24, 2023

This issue was resloved last week.

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