Skip to content

Playground on site not catching invalid Javascript expressions error #1772

@xHomu

Description

@xHomu

Subject of the issue

Great Job on the v2 rc release! Noticed a minor bug with error catching on the new Playground page for the new Javascript expressions support.

Your environment

Steps to reproduce

Invalid JSX Errors are caught correctly by the Compile tab:

Hello, world!
Below is an example of markdown in JSX.

</div>

image

Errors are NOT caught by the Compile tab when when using the new Javascript expressions syntax {...].

Hello, world!
Below is an example of markdown in JSX.

{r}

The page crashes from the error, error from chrome console:

image

Expected behaviour

Errors within Javascript expressions {...} should caught by the Playground Console tab like JSX syntax error.

Actual behaviour

The page crashes from the error, force you to refresh Playground.

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