examples icon indicating copy to clipboard operation
examples copied to clipboard

🟧 Svelte 5/ Sveltekit 2 Example

Open oneezy opened this issue 11 months ago • 3 comments

We could definitely use a Svelte/ Sveltekit example!

https://svelte.dev

oneezy avatar Dec 09 '24 01:12 oneezy

I'll propose my repo -- https://github.com/s-petey/deno-sveltekit

And the link to the PR for the docs repo: https://github.com/denoland/docs/pull/1286

s-petey avatar Dec 21 '24 13:12 s-petey

@s-petey I'll propose my repo -- https://github.com/s-petey/deno-sveltekit

I wanted to go ahead and link a few other things i found:

Support for Sveltekit:

  • issue: https://github.com/denoland/deno/issues/17248#issuecomment-2461116167

Another Deno + Sveltekit example by @AndreasNasman

  • issue: https://github.com/AndreasNasman/.config/issues/87
  • demo: https://github.com/AndreasNasman/deno-sveltekit-template

I'm really waiting for a way to use deno.json without the need for package.json as that seems to be where the real power is. This discussion goes into detail about using Deno w/ Turborepo and the current limitations:

  • discussion: https://github.com/vercel/turborepo/discussions/7454

oneezy avatar Jan 04 '25 02:01 oneezy

Thanks for linking my repo! 😊 I wrote down all the steps I took to create the template project in the wiki, which might give some more insight: https://github.com/AndreasNasman/deno-sveltekit-template/wiki

There are still some problems with SvelteKit-Deno projects, like ./$types being inferred incorrectly. Improvements have been addressed in the issue @oneezy mentioned earlier, so we might soon have better support for SvelteKit with Deno.

Update: The ./$types bug has been fixed and merged for the next Deno release! 💪

AndreasNasman avatar Feb 06 '25 11:02 AndreasNasman

There are now two examples: https://docs.deno.com/examples/svelte_tutorial/ https://github.com/denoland/docs/pull/1286 -> https://docs.deno.com/examples/sveltekit_tutorial/

s-petey avatar Sep 01 '25 12:09 s-petey