[api-extractor] SyntaxKind.SourceFile not supported by API Extractor
まだ誰も着手していません。
評価
- 難易度
- 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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/rushstack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoft/rushstack の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
receptron/mulmoterminal#2264 ·
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
components-web-app/docs#96 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
simonsobs/tileviewer#114 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100