Skip to content

[api-extractor] Internal Error: Missing Program.getDiagnosticsProducingTypeChecker with [email protected] #3349

Closed
@sosukesuzuki

Description

@sosukesuzuki

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 [email protected] 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions