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
If a svelte preprocessor edits the code to, for example, change the value of a $props() rune, the language server will not reflect that change. I believe this is because svelte2tsx is receiving the original unprocessed code.
<!-- +page.svelte -->
<script>
importFoofrom'./Foo.svelte';
</script>
<Footest="foo" />
<!-- ^~~~ Type 'string' is not assignable to type 'never'. ts(2322) -->
<!-- Foo.svelte -->
<script>
</script>
{test}
Expected behaviour
Since the above example compiles and runs, the language server output should match it.
System Info
OS: Linux
IDE: VSCode
Which package is the issue about?
svelte-language-server, svelte2tsx
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
Duplicate of #1567, #339. Preprocess API is asynchronous but TypeScript API requires it to be synchronous. There is also no way to tell if the preprocess is intended to transpile typescript into javascript or add stuff to typescript code.
Describe the bug
If a svelte preprocessor edits the code to, for example, change the value of a $props() rune, the language server will not reflect that change. I believe this is because
svelte2tsx
is receiving the original unprocessed code.Reproduction
Expected behaviour
Since the above example compiles and runs, the language server output should match it.
System Info
Which package is the issue about?
svelte-language-server, svelte2tsx
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: