Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#5,671 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
node.js, typescript
Bereich
tooling

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
TypeScript
Sterne
6.5k
Forks
708
Ø Merge
4 T. 7 Std.
Gemergte PRs (30 T.)
61

Entwicklungsumgebung

Die Einrichtungsdateien dieses Projekts haben wir noch nicht geprüft. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/rushstack

Alle Issues in microsoft/rushstack

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.