FormidableLabs / FormidableLabs/react-live

Custom import warning

Aperta
#207 0 commenti 7 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
4.6k
Fork
260
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.