callstack / callstack/react-native-paper
[IconButton] Error Check the render method of `ForwardRef`. in 5.14.5
- Ngôn ngữ chính
- TypeScript
- Star
- 14.5k
- Fork
- 2.2k
- Merge trung bình
- 5 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 12
Mô tả
### Current behaviour
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports
Check the render method of `ForwardRef`.
### Expected behaviour
No errors
### How to reproduce?
install 5.14.5, add this component anywhere. it will crash in runtime.
```react
null} />
```
### Preview
### What have you tried so far?
reverting back to 5.14.4 solves an issue.
### Your Environment
| software | version
| --------------------- | -------
| ios | V
| android | ?
| react-native | 0.79.4
| react-native-paper | 5.14.5
| node | 24.2.0
| npm or yarn | npm
| expo sdk | 53.0.9
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện sự cố crash với react-native-paper 5.14.5 và ví dụ IconButton trên các phiên bản React Native và Expo được liệt kê. So sánh hành vi với 5.14.4 và lần theo đường dẫn render của IconButton để xác định hồi quy; hoàn thành có nghĩa là component render mà không gặp lỗi runtime đã được báo cáo.
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-native, typescript
- Lĩnh vực
- frontend, mobile
- 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