sander
SvelteKit: Unable to load a local module for './$types'
The problem is that Deno at the moment doesn't support the
rootDirs
option
that SvelteKit uses to resolve these generated files. See this issue:
https://github.com/denoland/deno/issues/26871
My workaround for now is to not enable VSCode/Deno in the SvelteKit project
itself and embed the Deno TypeScript definitions directly in the project:
Not sure if there are better ways to work around the current limitation.8 replies