Sorry for the late response. If anyone is encountering this issue with Deno 2 after running:
deno run -RWE npm:create-vite-extra@latest
and selecting deno-svelte
as the template, the simplest fix is to update the file extension from svelte.config.js
to svelte.config.ts