rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

[api-extractor] Internal Error symbol has a ts.SyntaxKind.SourceFile declaration which is not (yet?) supported by API Extractor

Open lukasIO opened this issue 1 year ago • 0 comments

Summary

When exporting a type within a namespace in a package, in a dependent package api-extractor runs fail with symbol has a ts.SyntaxKind.SourceFile declaration which is not (yet?) supported by API Extractor.

Repro steps

https://github.com/lukasIO/api-extractor-namespace-type-bug

The README has the repro steps. What breaks api-extractor is seemingly utils.FooType here

Expected result: api extractor runs without errors

Actual result:

ERROR: Internal Error: The ""./foo/utils/index"" symbol has a ts.SyntaxKind.SourceFile declaration which is not (yet?) supported by API Extractor

You have encountered a software defect. Please consider reporting the issue to the maintainers of this application.

Details

Standard questions

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

Question Answer
@microsoft/api-extractor version? 7.47.9
Operating system? Mac
API Extractor scenario? reporting
Would you consider contributing a PR? Yes
TypeScript compiler version? 5.4.2
Node.js version (node -v)? 20.9.0

lukasIO avatar Oct 09 '24 16:10 lukasIO