FormidableLabs / FormidableLabs/react-live

Custom import warning

オープン
#207 コメント 0 件 リアクション 7 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
4.6k
フォーク
260
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

ファイル、テスト、エントリーポイントは指定されていません。まず、エディターでの import エラーの処理箇所を見つけてください。import の試行時に、react-live スコープでコンポーネントを提供する方法について、より明確な案内が表示され、プロジェクト固有のチュートリアルへのリンクが含まれるようになれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react, typescript
領域
frontend
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。