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] Internal Error: Missing Program.getDiagnosticsProducingTypeChecker with typescript@4.7.0-beta #3349

Closed
sosukesuzuki opened this issue Apr 12, 2022 · 2 comments · Fixed by #3394

Comments

@sosukesuzuki
Copy link

This is a bug that occurs in the beta version of typescript. I don't expect you to fix it right away, it's just a feedback.

Summary

@microsoft/api-extractor does not working with typescript@4.7.0-beta by the below error:

api-extractor 7.21.3  - https://api-extractor.com/

Using configuration from ./config/api-extractor.json
Analysis will use the bundled TypeScript version 4.7.0-beta

ERROR: Internal Error: Missing Program.getDiagnosticsProducingTypeChecker
You have encountered a software defect. Please consider reporting the issue to the maintainers of this application.

Repro steps

Since it is difficult to post a simple example in this Issue, I've created a repo to reproduce.

https://github.com/sosukesuzuki-sandbox/api-extractor-ts-4.7-beta-bug

Details

Please see https://github.com/sosukesuzuki-sandbox/api-extractor-ts-4.7-beta-bug

Standard questions

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

Question Answer
@microsoft/api-extractor version? 7.21.3
Operating system? Mac
API Extractor scenario? reporting (.api.md)
Would you consider contributing a PR? No
TypeScript compiler version? 4.7.0-beta
Node.js version (node -v)? 16.13.2
@sosukesuzuki sosukesuzuki changed the title [api-extractor] Not working typescript@4.7.0-beta [api-extractor] Internal Error: Missing Program.getDiagnosticsProducingTypeChecker with typescript@4.7.0-beta Apr 17, 2022
@sosukesuzuki
Copy link
Author

sosukesuzuki commented Apr 17, 2022

getDiagnosticsProducingTypeChecker has been removed at microsoft/TypeScript#36747

@sosukesuzuki
Copy link
Author

This bug is probably not only happening in the beta version, but will continue to happen even after RC or production is released, so it would be great if you could fix it as soon as possible.

I tried to fix it myself but gave up because I am not familiar with rushstack...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant