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] Update TypeScript version from 5.4.2 to latest #5052

Open
jawj opened this issue Dec 18, 2024 · 1 comment
Open

[api-extractor] Update TypeScript version from 5.4.2 to latest #5052

jawj opened this issue Dec 18, 2024 · 1 comment

Comments

@jawj
Copy link

jawj commented Dec 18, 2024

Summary

I'm using the latest TypeScript version. When I run api-extractor, I see this:

Analysis will use the bundled TypeScript version 5.4.2
*** The target project appears to use TypeScript 5.7.2 which is newer than the bundled compiler engine; consider upgrading API Extractor.

I then get various errors related to the TypeScript version being out of date, such as:

Warning: node_modules/subtls/index.d.ts:207:49 - (TS2315) Type 'Uint8Array' is not generic.

I can point api-extractor to the 5.7.2 type definitions, but of course it doesn't fully understand these, because it's too old.

I note this in the docs:

If the issue is that your toolchain uses a newer compiler release than API Extractor's engine, please open a GitHub issue requesting to upgrade API Extractor's compiler. We try to stay as current as possible.

So here's the issue!

@ocavue
Copy link

ocavue commented Dec 27, 2024

I'm using the ${configDir} template variable in my tsconfig.json, which was added in TypeScript v5.5. api-extractor throws the following error:

Error: Error parsing tsconfig.json content: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["${configDir}src/**/*"]' and 'exclude' paths were '[]'.
    at CompilerState.create (/my-lib/@microsoft/api-extractor/lib/api/CompilerState.js:76:19)

I assume that this is because api-extractor is still using TypeScript v5.4.2.

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

2 participants