Skip to content

JSX4: Unhelpful error message in case of duplicate prop #5936

@cknitt

Description

@cknitt

If the user accidentally adds the same prop twice (which is easy to overlook in case of a big number of props), they get the unhelpful error message:

 A type parameter occurs several times 

with no LoC information.

Example:

@react.component let make = ( ~someProp: bool, // ... more props ... ~someProp: bool, ) => React.null

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions