Skip to content

Poor error span for unclosed JSX tags in the presence of whitespace/comments #37306

@DanielRosenwasser

Description

@DanielRosenwasser
let Foo = {
  Bar() {
    
  }
}

let x = <    Foo.Bar >Hello

Expected: An error span like

let x = <    Foo.Bar >Hello
             ~~~~~~~

Actual: An error span like

let x = <    Foo.Bar >Hello
         ~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: Error MessagesThe issue relates to error messagingDomain: JSX/TSXRelates to the JSX parser and emitterExperience EnhancementNoncontroversial enhancementsFixedA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions