镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Closed

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.

Activity

  1. cristianoc commented on Apr 28, 2021

    @cristianoc
    Collaborator

    What's a complete self-contained example? (Failed to repro).
    Might be a compiler issue if it shows line 0 (the source of truth for all the errors is compiler.log).

  2. added a commit that references this issue on May 8, 2021
  3. cristianoc commented on May 17, 2021

    @cristianoc
    Collaborator

    Feel free to reopen with a repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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