microsoft / rushstack

Monorepo for tools developed by the Rush Stack community
https://rushstack.io/
Other
5.95k stars 602 forks source link

[api-extractor] Error parsing tsconfig.json content: Unknown compiler option 'isolatedDeclarations' #4877

Open dubzzz opened 3 months ago

dubzzz commented 3 months ago

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 commented 1 month ago

Related to the very same root cause: https://github.com/microsoft/rushstack/issues/4930

dubzzz commented 1 month ago

Also related to: https://github.com/microsoft/rushstack/issues/4805

dubzzz commented 1 month ago

Potential fix PR at: https://github.com/microsoft/rushstack/pull/4815