latitude icon indicating copy to clipboard operation
latitude copied to clipboard

Typescript does not work on `apps/server/routes/+layout.svelte

Open andresgutgon opened this issue 11 months ago • 0 comments

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 image

Result in this runtime error: image

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 image

andresgutgon avatar Mar 21 '24 12:03 andresgutgon