-
Notifications
You must be signed in to change notification settings - Fork 675
Description
Summary
We use the API Extractor as part of our process in the Backstage project and with extends/tsdoc-base.json not being exported it breaks the functionality for us.
Repro steps
- Create a new plugin in the Backstage or Community Plugins repo
- Run
yarn build:api-reports(this will runbackstage-repo-tools api-reports -o ae-wrong-input-file-type,ae-undocumented --validate-release-tags)
Expected result: The API Reports should generate Markdown files or update the existing ones
Actual result: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './extends/tsdoc-base.json' is not defined by "exports" in /home/runner/work/community-plugins/community-plugins/workspaces/catalog/node_modules/@microsoft/api-extractor/package.json
Workaround: We could pin to the older version but we have over 80+ plugins in the Community Plugins repo all under their own Yarn setup. We would need to add it and then remove int once it's been fixed.
Details
Here's the code on the Backstage side that's expecting extends/tsdoc-base.json:
Standard questions
Please answer these questions to help us investigate your issue more quickly:
| Question | Answer |
|---|---|
@microsoft/api-extractor version? |
7.57.0 (and .1 and .2) |
| Operating system? | Mac / Linux |
| API Extractor scenario? | reporting (.api.md) |
| Would you consider contributing a PR? | No |
| TypeScript compiler version? | 5.7.3 |
Node.js version (node -v)? |
22 and 24 |
Metadata
Metadata
Assignees
Labels
Type
Projects
Status