-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterRelates to the JSX parser and emitterFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
Missing attribute error highlights the whole component, which can be distracting, and does not help in pointing out the source of the problem. We should instead highlight the component name in these cases.
import React from "react";
export class MyComponent extends React.Component<{ abc: number }> {
}
<MyComponent
key="hi"
AnotherProperty="ss"
YetAnotherProperty={
{
a: 0,
b: "ss"
}
}
/>Originally reported in https://twitter.com/keeskluskens/status/981168047204458501
esamattis and jwbay
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterRelates to the JSX parser and emitterFixedA PR has been merged for this issueA PR has been merged for this issue
