The @react-native-harness/metro patch hasn't been applied since the monorepo move

Đang mở Phù hợp với người mới
#376 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ó
2/5
Thời gian dự kiến
1-3 giờ
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
Công nghệ
node.js, react-native, typescript

Hướng nghiên cứu

Bắt đầu tại package.json ở thư mục gốc và patches/@react-native-harness+metro+1.0.0-alpha.23.patch; sau đó kiểm tra example/package.json, postinstall của nó và các script Harness (pnpm harness:ios, pnpm harness:android) để xem liệu withRnHarness có được thực thi hay không. Chạy một lệnh Harness để kiểm tra xem patch có còn cần thiết hay không. Hoàn tất nghĩa là hoặc patch được áp dụng thông qua patchedDependencies ở thư mục gốc với patch-package đã bị xóa, hoặc cả patch và thiết lập patch-package đều bị xóa.

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

Mô tả

patches/@react-native-harness+metro+1.0.0-alpha.23.patch comments out blockList: undefined in withRnHarness, with the note "This is needed for the example app to work." It came in with Harness in #31, when the example app was the repository root. #110 then moved the app to example/ and the patch to the root patches/. Since then, the example's postinstall (patch-package) runs from example/ and finds no patches there ("No patch files found"), so the patch is never applied.

The example app's own Metro config doesn't use withRnHarness, and the app builds and runs without the patch. So it can only matter for the Harness test runs (pnpm harness:ios, pnpm harness:android), which CI doesn't run. There are two ways to resolve it:

  • If those runs still need the patch, apply it the pnpm way, with patchedDependencies in the root package.json, and drop patch-package.
  • If they don't, delete the patch and the patch-package setup.
Ngôn ngữ chính
TypeScript
Star
864
Fork
51
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
10

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 callstackincubator/voltra

Tất cả issue của callstackincubator/voltra

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.