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
<script lang="ts">
import type { LayoutData } from './$types';
// Data from +page.ts
export let data: LayoutData;
let user;
if (data) {
user = data.user;
}
</script>
LayoutData is inferred as {} which then leaves lots of other errors in the my code
Reproduction
See description
Expected behaviour
LayoutData should be null | { user: string, player: string }
System Info
MacOS, VSCode
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
I ran into a similar issue on arch linux using emacs and lsp-mode, turns out I still had the package nodejs-svelte-language-server-git installed (it must've been removed from the aur sometime after I installed it) and updating to a more recent version (0.15.3) using the nodejs-svelte-language-server package fixed it.
Describe the bug
+layout.ts
in +layout.svelte
LayoutData is inferred as
{}
which then leaves lots of other errors in the my codeReproduction
See description
Expected behaviour
LayoutData should be
null | { user: string, player: string }
System Info
MacOS, VSCode
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: