Skip to content

Error for variable not found is at the wrong location for JSX props punning #183

Closed
@bsansouci

Description

@bsansouci

I have a component and am passing props of the same name as the variable, like

open Common

@react.component
let make = () => {
    <MyComponent article />
}

and the variable article is not declared, so I get an error, but the line number seems to be 0 because the error shows up at the top of the file, underlining open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsxIssue with ppx for JSX

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions