Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,196 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
testing, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
JavaScript
Star
608
Fork
158
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nodejs/citgm

Tất cả issue của nodejs/citgm

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.