vscode-styled-components icon indicating copy to clipboard operation
vscode-styled-components copied to clipboard

[Bug] Highlight error

Open SteveYuOWO opened this issue 1 year ago • 1 comments

Compiled correctly but highlighted errors

background-image: url(${(props) =>
    props.$color === "green" ? StepBgGreenImage : StepBgPurpleImage});

The error says

) expectedts-styled-plugin(9999)

SteveYuOWO avatar Sep 02 '23 10:09 SteveYuOWO

Code formatting uses prettier, so it is formatted in 2 lines. No errors occur when code is on a single line.

SteveYuOWO avatar Sep 02 '23 10:09 SteveYuOWO