RESULT_CODE_HUNG when updating translation files

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Reproduce the hang using pages/page1.tsx, strings.ts, and i18n/en.json, starting with an edit to the translation file while Fast Refresh is enabled. Inspect the hot reload chunk response and compare the behavior with a full refresh; done means the page remains responsive and either refreshes correctly or falls back to a full refresh.

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

Mô tả

I'm working on migrating a fairly large project to rspack and one blocker they had with webpack was enabling Fast Refresh. There is a known issue that Rspack seems to have solved around circular dependencies, https://github.com/pmmmwh/react-refresh-webpack-plugin/issues/190.

However, when I enable this plugin for our repo and make changes to any of our translation files, we have a few pages that hang and are completely unresponsive. The basic structure of our app is

pages/
  - page1.tsx
  - strings.ts
i18n/
  - en.json

where strings.ts is something like

export const title = i18n.t('<key-of-en.json>');

I'd expect the page to either do a full refresh or not hang. There are no useful logs in either the browser or rspack. An example response from the hot reload chunk is

{
c: ["main"],
r: [],
m: []
}
Ngôn ngữ chính
TypeScript
Star
20
Fork
13
Merge trung bình
2 giờ 55 phút
Pull request đã merge (30 ngày)
6

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 rstackjs/rspack-plugin-react-refresh

Tất cả issue của rstackjs/rspack-plugin-react-refresh

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.