Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#5,671 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript
Ambito
tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
6.5k
Fork
708
Merge medio
4g 13h
PR unite (30g)
62

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/rushstack

Tutte le issue di microsoft/rushstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.