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

`[email protected]` fails in `test:typescript` on all Node.js windows

Aperta
#1,196 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, nodejs, typescript
Ambito
testing, tooling

Direzione di ricerca

Inspect lib/lookup.json for the undici entry and compare it with the package’s .github/workflows/ci.yml and test:typescript script. Reproduce on Windows 11 with citgm undici, then investigate why tsc ./types/*.d.ts cannot resolve the declaration files; the glob behavior may need a cross-platform adjustment or an explicit file list. Done means the TypeScript checks pass on Windows without breaking Linux or macOS, or the lookup configuration is intentionally changed and its rationale is documented.

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

Descrizione

Situation

Running citgm undici fails on Node.js 22, 24 & 26 (windows)

error:                     | > [email protected] test:typescript
error:                     | > tsd && tsc test/imports/undici-import.ts --typeRoots ./types --noEmit && tsc ./types/*.d.ts --noEmit --typeRoots ./types
error:                     |
error:                     | error TS6053: File 'types/*.d.ts' not found.

Note that test:typescript only runs in ubuntu-latest when testing with https://github.com/nodejs/undici/blob/main/.github/workflows/ci.yml in the source repo. It doesn't appear to be testing in windows.

Item Status
npm package https://www.npmjs.com/package/undici
npm status active
last published 8.12.2 Oct 15, 2026
weekly downloads 207,965,518
repo location https://github.com/nodejs/undici
repo last update to default branch Oct 15, 2026
repo status active
repo CI status runs in Node.js 22-26, macos, ubuntu & windows
lookup - skip -
lookup maintainer 1 mcollina
lookup maintainer 2 ronag

Repo CI https://github.com/nodejs/undici/blob/main/.github/workflows/ci.yml runs in Node.js 22 - 26 on macos, ubuntu & windows.

Steps to reproduce

On Windows 11 26H2, Node.js 24.22.0 LTS

npm install citgm@latest -g # 10.0.4
citgm undici

Results

Cross-check of [email protected] in GitHub Actions shows that it succeeds in macos & ubuntu.

It fails in windows.

Node.js npm macos ubuntu windows
22.23.3 10.9.9 PASS PASS FAIL
24.21.0 11.19.0 PASS PASS FAIL
26.12.0 11.20.0 PASS PASS FAIL

References

https://github.com/nodejs/citgm/blob/37e15454ddfe5aba91955062b7899114c528e7d1/lib/lookup.json#L394-L419

Suggestion

  • Either enhance test:typescript for cross-platform compatibility OR
  • remove test:typescript from lookup.json for undici

cc: @mcollina @ronag

Lingua principale
JavaScript
Stelle
606
Fork
159
Merge medio
3g 1h
PR unite (30g)
21

Preparare l'ambiente

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 nodejs/citgm

Tutte le issue di nodejs/citgm

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.