SvelteLab / SvelteLab

supercharged REPL for Svelte

Home Page:https://sveltelab.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error message on '$lib' imports

trasherdk opened this issue · comments

Describe the bug

Importing from $lib in +page.svelte gives errors, but works anyway.

Reproduction

The errors are available in The Context API

Expected behavior

Well, the errors should not be present, when the imports clearly works :lau

Screenshots

image

Additional context

No response

Mmm I bet this has to do with the classic error you get when you have to restart the TS server...we need to add something similar to restart svelte-check

Oh i just realized the error in this repl is because you don't have svelte-preprocess but you are trying to use lang="ts" but we do still need to restart svelte-check

Yes, adding svelte-preprocess to the config, got rid of the error messages 😄