[api-extractor] SyntaxKind.SourceFile not supported by API Extractor
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- node.js, typescript
- Domaine
- tooling
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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 |
- Langage dominant
- TypeScript
- Étoiles
- 6.5k
- Forks
- 708
- Merge moyen
- 4 j 7 h
- PR mergées (30 j)
- 61
Préparer son environnement
Nous n'avons pas encore vérifié les fichiers d'installation de ce projet. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoft/rushstack
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
microsoft/rushstack#5971 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
microsoft/rushstack#5902 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
microsoft/rushstack#5839 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
microsoft/rushstack#5683 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de microsoft/rushstack
Issues similaires
-
module-request
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
ports get and web print 'Port N already in use, trying next...' for every busy port they skipOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
appandflow/stim#1604 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
lingdojo/kana-dojo#31060 · 1 commentaire · 5 réactions ·
Les mainteneurs répondent en général sous 1 jour
-
SSH workspace restore rewrites relative symlinks into the deleted sync-back staging directoryOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
paperclipai/paperclip#14173 ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour