FormidableLabs / FormidableLabs/react-live
Custom import warning
- Ngôn ngữ chính
- TypeScript
- Star
- 4.6k
- Fork
- 260
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi,
I know it's not possible to use imports in the editor. Was wondering if it's possible to customize the error message in case the user tries to import something.

Instead of this error message, I'd like an error message explaining how the user should provide the components in react-live scope, with a link to a tutorial on how to do so in the context of my project.
I think many people try to import things in react-live, and it fails with this unfriendly message. It happened to me and I've seen some issues about that already.
Does it make sense?
Hướng dẫn đóng góp
Hướng nghiên cứu
Không có tệp, test hay entry point nào được nêu. Hãy bắt đầu bằng cách xác định nơi editor xử lý các lỗi import; công việc được xem là hoàn tất khi các lần thử import hiển thị hướng dẫn rõ ràng hơn về việc cung cấp các component trong react-live scope và bao gồm liên kết đến tutorial dành riêng cho dự án.
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
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ 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
- 35/100