tomblachut / svelte-intellij

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

"A term expected" when trying to pass argument into style attribute #106

Closed rafalplonka closed 4 years ago

rafalplonka commented 4 years ago

Great plugin !

I have a problem when trying to pass an argument from script into svelte code

<script>
    export let buttonColor = "#a8b634";
</script>
<button style="background-color: {buttonColor}" >Button</button>

This will show an error in IDE from Svelte plugin: "A term expected". Although the code works and it's the same as in the Svelte Tutorial example, which also causes it: https://svelte.dev/tutorial/dimensions

tomblachut commented 4 years ago

Hello, should be fixed in https://github.com/tomblachut/svelte-intellij/releases/tag/v0.12.1