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 symbol has a ts.SyntaxKind.SourceFile declaration which is not (yet?) supported by API Extractor #4963

Open
lukasIO opened this issue Oct 9, 2024 · 0 comments

Comments

@lukasIO
Copy link

lukasIO commented Oct 9, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs triage
Development

No branches or pull requests

1 participant