FormidableLabs / FormidableLabs/react-live
Custom import warning
- 主要言語
- 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.

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