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

[api-extractor] Cannot parse tsconfig.json with target: "es2023" #4930

Open
fdw opened this issue Sep 19, 2024 · 0 comments
Open

[api-extractor] Cannot parse tsconfig.json with target: "es2023" #4930

fdw opened this issue Sep 19, 2024 · 0 comments

Comments

@fdw
Copy link

fdw commented Sep 19, 2024

Summary

I would like to parse a tsconfig.json file with target: "es2023". However, that results in the error Error parsing tsconfig.json content: Argument for '--target' option must be: 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext'.

I suspect the problem is that es2023 was only added to Typescript 5.5, but api-extractor still uses 5.4.2.

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/api-extractor version? 7.47.7
Operating system? Linux
API Extractor scenario? Using https://github.com/qmhc/vite-plugin-dts to generate types
Would you consider contributing a PR? If it's just updating the Typescript version, sure
TypeScript compiler version? 5.4.2
Node.js version (node -v)? 22.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs triage
Development

No branches or pull requests

1 participant