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
Hello,
I have problems using this library after update to version >= v8.4.0
<scriptlang="ts">
importtype {Option} from'svelte-multiselect';importMultiSelectfrom'svelte-multiselect';const opts:Option[] = [1, 2, 3, 4, 5]
</script>
<divclass="test">
This is just a test
</div>
<MultiSelectoptions={opts}></MultiSelect>
When I import from svelte-multiselect, svelte-check will throw error: Cannot find module 'svelte-multiselect' or its corresponding type declarations.. Build is ok, code works, only svelte-check is the problem.
I found this svelte/package v2 issue here.
Did you managed to solve it? Or is it svelte-check issue and I should create issue there?
The text was updated successfully, but these errors were encountered:
The recommended fix is to update to TypeScript v5 and set "moduleResolution": "bundler". Let me know if that doesn't fix the issue or if something prevents you from upgrading.
I already upgraded to TS v5 with "moduleResolution": "bundler".
But I found the issue, I am using multiple tsconfig files and svelte-check was using the the wrong tsconfig without "moduleResolution": "bundler". After I've fixed svelte-check parameters, it is working without problem.
Anyway, thank you for your help and sorry to bother you.
Hello,
I have problems using this library after update to version >= v8.4.0
When I import from
svelte-multiselect
, svelte-check will throw error:Cannot find module 'svelte-multiselect' or its corresponding type declarations.
. Build is ok, code works, only svelte-check is the problem.I found this svelte/package v2 issue here.
Did you managed to solve it? Or is it svelte-check issue and I should create issue there?
The text was updated successfully, but these errors were encountered: