Skip to content

Unclear fatal error when JSX not configured in rescript.json #7468

Open
@cknitt

Description

@cknitt

When one forgets to configure the JSX settings in rescript.json and tries to compile a ReScript source file containing JSX, one gets the following error:

Fatal error: exception Failure("Pexp_jsx_element is expected to be transformed at this point")

Instead, the user should get a clearer and more actionable error message, maybe something like

Cannot compile JSX expression because JSX support is not enabled. Add"jsx" settings to rescript.json to enable JSX support.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions