tomblachut / svelte-intellij

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

`Unresolved function or method set()` error when Writable type explicitly set #203

Closed btakita closed 3 years ago

btakita commented 3 years ago

Unresolved function or method set() error when store type is explicitly declared.

<script lang="ts">
import { writable } from 'svelte/store'
import type { Writable } from 'svelte/store'
const name:Writable<string> = writable('')
let my_name:string
$: name.set(my_name)
</script>
btakita commented 3 years ago

Adding node_modules to the Idea Libraries fixed the issue.

See https://youtrack.jetbrains.com/issue/WEB-49929