tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
482 stars 38 forks source link

<style>: nested rules break parsing/inspection #208

Closed Mikk36 closed 2 years ago

Mikk36 commented 3 years ago

image

Using them currently with Windi CSS

tomblachut commented 3 years ago

The problem is nested rules in plain CSS, right?

Mikk36 commented 3 years ago

Looks like everything with nested rules breaks. image

tomblachut commented 3 years ago

Yes, because that's not CSS

tomblachut commented 3 years ago

Enabling PostCSS would resolve that problem I think

Mikk36 commented 3 years ago

PostCSS is already enabled in the project and the code compiles, it's just the editor, that's unhappy. Do I have to enable PostCSS somewhere in the editor/plugin settings?

tomblachut commented 3 years ago

Sorry I'm not sure, I'll investigate more later

maiksch commented 3 years ago

I have the same problem and was able to solve it by adding lang="scss" to the