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] Error parsing tsconfig.json content: Unknown compiler option 'isolatedDeclarations' #4877

Open
dubzzz opened this issue Aug 11, 2024 · 3 comments

Comments

@dubzzz
Copy link

dubzzz commented Aug 11, 2024

Summary

api-extractor does not support the newly added isolatedDeclaration flag in tsconfig files.

Repro steps

Simply add the flag isolatedDeclaration to either true or false in a tsconfig file and run api-extractor.

Expected result: Should not throw about unrecognized flag

Actual result: Throws "Error parsing tsconfig.json content: Unknown compiler option 'isolatedDeclarations'"

Details

From my investigation, it seems that the fix would be to bump the dependency to typescript to 5.5+. But I prefer having your go if any before opening any PR or waiting for yours.

Standard questions

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

Question Answer
@microsoft/api-extractor version? 7.47.5
Operating system? GNU/Linux
API Extractor scenario?
Would you consider contributing a PR?
TypeScript compiler version? 5.4.2 (the one pulled by api-extractor), mine is 5.5.4
Node.js version (node -v)? 20.14.0
@dubzzz
Copy link
Author

dubzzz commented Oct 1, 2024

Related to the very same root cause: #4930

@dubzzz
Copy link
Author

dubzzz commented Oct 1, 2024

Also related to: #4805

@dubzzz
Copy link
Author

dubzzz commented Oct 1, 2024

Potential fix PR at: #4815

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