FormidableLabs / FormidableLabs/react-live
Custom import warning
- Dominant language
- TypeScript
- Stars
- 4.6k
- Forks
- 260
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Research direction
No file, test, or entry point is named. Start by locating the editor's handling of import errors; done means import attempts display clearer guidance about providing components in the react-live scope and include a project-specific tutorial link.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100