Closed
Description
I ran into a very annoying error message with ReasonReact where I had a typo in a prop (onKeypress
instead of onKeyPress
). The most valuable part of the error message is at the bottom and I couldn't see it.
module Button = {
@react.component
let make = (~count: int) => {
<button onKeypress={(_) => ()}> {msg->React.string} </button>
}
}
This problem has several facets:
- The extension doesn't show the full message
- This error message is massive, but I understand why the full tuple might be helpful in some situations
- The most helpful piece of information is on the last line
I'm primarily a TS dev so I'm used to reading error messages from bottom to top, but I don't think it makes for the best experience - especially when compared to Rust for example.
Metadata
Metadata
Assignees
Labels
No labels