react 19: the Dependabot halves cannot resolve alone, so the bump needs one combined PR

Đang mở Phù hợp với người mới
#403 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 4 ngày

@IanoNjuguna đang làm issue này rồi.

Từ ngày 22/11/2026.

  • #404 của @IanoNjuguna — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
70/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, react, typescript
Lĩnh vực
build-system, frontend

Hướng nghiên cứu

Bắt đầu từ website/package.json, sau đó kiểm tra website/package-lock.json và .github/workflows/deploy.yml; hai nửa PR Dependabot bị lỗi là #401/#402 và giải thích vì sao lockfile chưa được merge làm hỏng việc deploy Pages. Trong website, nâng cấp react, react-dom và @types/react-dom, tạo lại lockfile bằng npm install, rồi kiểm tra bằng npm ci và npm run build. Coi là xong khi PR gộp cài đặt sạch và build thành công; phần dọn dẹp packageManager/resolutions còn sót lại của yarn để sang một thay đổi riêng.

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

Mô tả

dependencies

Dependabot opened the react 19 major as two PRs, and neither can pass on its own:

  • #401 bumps react 18.3.1 to 19.3.1
  • #402 bumps react-dom and @types/react-dom to 19.3.1 / 19.3.0

Each half breaks the other's peer requirement, so both fail npm ci with ERESOLVE:

#402: Found: [email protected]
      Could not resolve dependency: peer react@^19.3.1 from [email protected]

#401: Found: [email protected]
      Could not resolve dependency: peer react-dom@^18.3.1 from [email protected]

Merging them one after the other does not fix it either. deploy.yml runs on every push to main, so between the two merges the tracked lockfile does not resolve, the build job fails, and the Pages deploy is skipped. Any PR opened in that window inherits the same broken lockfile.

Proposed fix

One PR that takes the peer set together, with a regenerated lockfile:

  • react and react-dom to ^19.3.1
  • @types/react-dom to ^19.3.0 (19.3.1 does not exist)

Verified locally against main at 973801b:

  • npm install with the bumped versions: 1409 packages, no ERESOLVE
  • npm ci against the regenerated website/package-lock.json: exit 0
  • npm run build: SUCCESS, static files generated

@docusaurus/core 3.10.2 declares react ^18.0.0 || ^19.0.0, so 19 is inside the supported range. The @slorber/react-helmet-async alias it depends on prints a peer warning capped at react 18, and the install still exits 0.

Related, separate

website/package.json still carries packageManager: [email protected] and a resolutions block pinning react and react-dom to ^18.3.1, both stale since the repo standardised on npm. A yarn install would put react 18 back. npm ignores both, so this does not block the bump, but it should be cleaned up in its own change.

Also worth considering: a groups entry in .github/dependabot.yml covering the peer set, so the next react major arrives as one PR instead of two unresolvable halves.

Ngôn ngữ chính
TypeScript
Star
13
Fork
24
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
16

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 IntersectMBO/developer-experience

Tất cả issue của IntersectMBO/developer-experience

Issue tương tự

Thêm issue về TypeScript

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.