latitude
latitude copied to clipboard
Typescript does not work on `apps/server/routes/+layout.svelte
What?
If I try to use generated types from Svelte on our ./apps/server/routes/+layout.servert.ts
file it does not work at runtime
Doing this
Result in this runtime error:
The error is pointing to an issue with our vite plugin
Temporary fix
Not ideal but the solution is to remove lang="ts"
from the <script>
tag in +layout.svelte
and use JSDoc instead