FormidableLabs / FormidableLabs/react-live

Custom import warning

Đang mở
#207 0 bình luận 7 reaction 0 người được giao Xem trên GitHub
enhancement
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.

![image](https://user-images.githubusercontent.com/749374/83146405-84e1a200-a0f6-11ea-8e62-5b9a8658b009.png)

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

Mở 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

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.