You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cause is: the plugin currently assumes syntax within styled-components string to be LESS but styled-components allows more syntax. We should definitely bring this in line with what's acceptable at runtime.
As a workaround, if I understand correctly, one could surround the properties inside @supports with a rule-set with a '&' selector, it would be processed to the equivalent CSS :
I'd like bring the plugin closer to parsing the same set of syntex that styled-components actually accepts. @mxstbr, can you help figure out what other syntax styled-components supports that's not present in CSS/Less?
The styled-components plugin (1.0.6) in phpstorm (2018.3) inspection rise an error Invalid CSS selector. Any idea why ?
The text was updated successfully, but these errors were encountered: