Describe the bug
Using a construct like this:
<svelte:component this={directive.component} on:submit={handleSubmit} />
compiles and works perfectly but emits the following errors in svelte-check:
src/add/CompleteWord.svelte:41:84
Error: ',' expected. (ts)
src/add/CompleteWord.svelte:41:81
Error: Unexpected token. Did you mean `{'}'}` or `}`? (ts)
src/add/CompleteWord.svelte:20:14
Hint: 'handleSubmit' is declared but its value is never read. (ts)
src/add/CompleteWord.svelte:41:84
Error: Cannot use namespace 'svelte' as a value. (ts)
To Reproduce
<script lang="ts">
import Whatever from './Whatever.svelte';
function handleSubmit() {
console.log('test')
}
</script>
<svelte:component this={Whatever} on:submit={handleSubmit}/>
npm run validateExpected behavior
There should be no warnings or errors!
Screenshots

System (please complete the following information):
svelte-checkAdditional context
dceddia was already able to reproduce: https://discord.com/channels/457912077277855764/689494103380983930/739952039408304269
That was fast 馃ぉ, works like a charm! Now you can expect more issues from me ;)...
Most helpful comment
That was fast 馃ぉ, works like a charm! Now you can expect more issues from me ;)...