Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[api-extractor] SyntaxKind.SourceFile not supported by API Extractor

オープン
#5,671 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
node.js, typescript
領域
tooling

調査の方向性

Start by cloning perezgarciam/api-extractor-repro, running npm install and npm start, and confirming the SyntaxKind.SourceFile error with API Extractor 7.57.3 and TypeScript 5.9.3. Trace the reporting path that processes the imported type, compare it with the working Promise<typeof import('./abc').fn> form, and verify that the reproduction no longer fails.

索引モデルが issue の本文から書いたものです。

説明

Summary

Running into following the error when running api-extractor

ERROR: Internal Error: The ""../api-extractor-repro/lib/abc"" 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.

Repro steps

Here's a minimal repro https://github.com/perezgarciam/api-extractor-repro

gh repo clone perezgarciam/api-extractor-repro
cd api-extractor-repro
npm install
npm start

Details

Seems that importing the type throws the error as updating the code to the snippet below fixes the problem

const abcImport = import('./abc');

/**
 * Asynchronously loads function that returns a number
 */
export const fnAsync: Promise<typeof import('./abc').fn> = abcImport.then((module) => module.fn);

Standard questions

Question Answer
@microsoft/api-extractor version? 7.57.3
Operating system? Mac
API Extractor scenario? Reporting
Would you consider contributing a PR? With guidance
TypeScript compiler version? 5.9.3
Node.js version (node -v)? v24.12.0
主要言語
TypeScript
スター
6.5k
フォーク
708
平均マージ
4日 13時間
マージ済み PR(30日)
62

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/rushstack のほかの issue

microsoft/rushstack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。