Skip to content

Custom import warning #207

Open
Open
@slorber

Description

@slorber

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

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions