code-forge-io / code-forge-io/react-router-devtools

Error after upgrading from 5.1.3 to 6.0.0

Đang mở
#238 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
972
Fork
55
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Initial page loads and the dev tools are active, but seem buggy. For example if I click on the route diagram, it flashes the "real" diagram and then reverts to a single dot with "Root". As soon as I try to navigate, I get:

```
Application Error
TypeError: Cannot read properties of undefined (reading 'add')
at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12939:44
at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12941:5
at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12951:13
at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12929:5
at http://localhost:4200/node_modules/.vite/deps/react-router-devtools_client.js?v=e1651124:12932:7
```

Revert to 5.1.3 and everything works fine again.

React Router 7.10.1
Vite 7.2.7
React 18.3.1

Spa mode

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

Hướng nghiên cứu

Tái hiện lỗi trong một ứng dụng React Router 7.10.1, Vite 7.2.7, React 18.3.1 sử dụng SPA mode, đồng thời so sánh hành vi với devtools 5.1.3 và 6.0.0. Bắt đầu từ mã client của devtools được đề cập trong stack trace và kiểm tra các đường dẫn route-diagram và điều hướng. Được xem là hoàn tất khi sơ đồ vẫn chính xác và thao tác điều hướng không còn phát sinh lỗi “add” undefined.

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

Đánh giá

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

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.