Closed joshua-lafever closed 1 year ago
I got the exact same error and came to report it as well. Here's mine:
latinReleases.sort((a, b) => a["release-group"]["first-release-date"] - b["release-group"]["first-release-date"])
No syntax error (just a type coercion that Typescript doesn't like). Here's the output:
I'm on v0.3.0, with vscode 1.77.3
Describe the bug The error formatting is odd and is displaying what appears to be an icon that isn't properly interpolated.
This is the line that caused the error:
return (control.value > max) ? { maxDate: true } | null;
The error is being caused by accidentally typing
|
instead of:
, but the formatting of the error is strange.I haven't seen any other instances like this and I've been using this extension for the past week.
Expected behavior To show the styled error.
Original error
The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
Screenshots If applicable, add screenshots to help explain your problem.