-
Notifications
You must be signed in to change notification settings - Fork 648
Description
Summary
I am in the final stages of converting TypeScript itself into modules (from its current state as giant namespaces). To reproduce something similar to our current d.ts files, I am running api-extractor on our d.ts files to try and roll things up.
Repro steps
- Clone https://github.com/jakebailey/TypeScript/tree/typeformer-2
npm ci
and runnpx gulp moduleBuild
- Run
npx @microsoft/api-extractor run --local --config ./src/typescript/api-extractor.json --diagnostics
Expected result: Not crash, and hopefully a nice d.ts file
Actual result: ERROR: Failed to fetch entity for import() type node: import("../_namespaces/ts").PrivateIdentifier
Coming from here:
rushstack/apps/api-extractor/src/analyzer/AstSymbolTable.ts
Lines 451 to 454 in fcf97f6
if (!referencedAstEntity) { | |
// This should never happen | |
throw new Error('Failed to fetch entity for import() type node: ' + importTypeNode.getText()); | |
} |
(I'm afraid even though it should never happen, it does happen. 😢 )
Note that I force push over that branch frequently, as it is auto-generated using a big script that converts the codebase.
Details
I honestly don't know enough about api-extractor to know what's going wrong here.
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question | Answer |
---|---|
@microsoft/api-extractor version? |
7.30.0 |
Operating system? | inux |
API Extractor scenario? | rollups (.d.ts) |
Would you consider contributing a PR? | Yes / No |
TypeScript compiler version? | 4.7.4 |
Node.js version (node -v )? |
14.20.0 |
Metadata
Metadata
Assignees
Labels
Type
Projects
Status