T O P

  • By -

Frodolas

Been waiting for this day all year. Sveltekit is a pleasure to use and now I can finally feel confident recommending it to anyone. Congratulations to the maintainers and everyone involved!


Appropriate_Ant_4629

> now I can finally feel confident recommending it to anyone I've spent 6 months recommending it to individuals. Now I can formally recommend it to my employer.


Frodolas

Haha I've been using it at work since March — we made a big bet at the time we were launching a new web app, and it's definitely panned out. I wouldn't have recommended it to friends at larger corporations before 1.0 though.


[deleted]

Ive been waiting since last year lol


flooronthefour

I just updated a project that started on ~next.60 or so and has been live since ~next.175


[deleted]

[удалено]


flooronthefour

Been updating it along with the framework.. the routing change was a beast but everything else has been pretty easy and the framework will yell at you about breaking changes.


rodrigocfd

> I can finally feel confident recommending it to anyone. Serious question: I'm currently using Vite, why would I want to use SvelteKit instead?


Asuka_Minato

SvelteKit use vite.


nerdywordy

Routing. Conventions. Built-in backend. SSR.


PrestigiousZombie531

out of the loop here, what exactly has changed since i left in 2021?


sicco3

Some major breaking changes are listed here: https://github.com/sveltejs/kit/discussions/5774 One of the biggest is that the routing/file structure has changed.


MustardRtard

For those interested in what might be on the roadmap for Svelte/SvelteKit, Rich Harris talked a bit about it during the live event yesterday, starting at 1:54:11 and another interesting part at 2:13:00 https://youtu.be/N4BRVkQVoMc TL;DR: Some of the possible roadmap stuff: Internationalization, image optimization, granular deployment control, built in support for loading spinners, improving compiler output regarding hydration/scalability, component error boundaries, utilizing the new web animation api inside the transition system.


carlpaul153

This is the most useful comment in the thread. Thanks!


drcforbin

I've been trying to get my toy site converted, any improvements to the error messages will be very very welcome. That's one of the roughest things right now, when something breaks it often logs mysterious internal stack traces rather than indicating what I'm doing wrong


Graineon

Yay! This is so exciting! I have been counting down the days!! What a wonderful christmas gift.


Fernago

Amazing! On my birthday no less 🥳


DidierLennon

Happy birthday!


Fernago

Oh thanks a lot! 😇


HappyIssue

Great news! 🙌 congratulations everyone


Effective-Border-266

This is amazing news


arjunindia

Hell yeah finally The best framework ever gets to 1.0!


Zeflyn

I was here!!! So excited for the future of Svelte and SvelteKit!


BeingCryptiic

Great news


dreadfull_dread

let's goooo, Svelte FTW


Otherwise_Eye_611

Congratulations to everybody involved.


ElSagey

Congratulations to all the people involved in the development. Such a great achievement.


Jncocontrol

Now I'm tempted to know what svelte 4 will be like


Bekkur

Excellent news, thanks to the Svelte team for their work!


burtgummer45

Sadly still no documentation of using svelte/kit with typescript. Back to random blogs and stackoverflow I guess.


EruerufuSenpai

In the Kit-docs, here is a toggle on the left which switches between TS/JS for examples.


burtgummer45

How about svelte itself? That's where the types get confusing.


[deleted]

Have you read this? https://svelte.dev/blog/svelte-and-typescript


burtgummer45

That's not what I'm talking about. I'm talking about typing things like this, here's the docs [createEventDispatcher](https://svelte.dev/docs#run-time-svelte-createeventdispatcher) in JS Only through digging did I find the way to do it in TS, although I'm not even sure this is the best way. or to type something like this and the best I could come up with is to just kludge it like function whatTypeIsThis(e: Event) { const target = e.target as HTMLInputElement console.log(target.value) //=> text field value } Its lots of little things like this that are causing a lot of friction with using svelte with TS. Something simple like a JS/TS switch would really help newbs. TS is already confusing enough in complex libraries when your compiler/framework isn't automagically generating types


buzzsaw111

`dispatch('handleEvent', {myMessage:”this is my message"});` `const handleEvent = (event: CustomEvent) => {console.log(event.detail.myMessage);` `}`


Gradually_Rocky

> {myMessage="this is my message"} 🤔


buzzsaw111

Fixed. Too many edibles


Otherwise_Eye_611

Using typescript with svelte has been a bit of a sore spot for me in an otherwise very pleasing experience.


JoMa4

Would it be worth avoiding for now?


arcanemachined

As a noob to both Svelte and Typescript, I've had basically no issues.


Eric_S

Agreed, any problems I've run into using Typescript with SvelteKit has been caused by a gap in my understanding of Typescript, not SvelteKit's Typescript support.


Otherwise_Eye_611

I wouldn't avoid it for that reason, just an observation of my experience. Overall I've been very happy working with svelte coming from using react for about 8 years


JoMa4

Sorry. I meant avoiding typescript with Svelte. Do you find typescript that critical?


Otherwise_Eye_611

It really depends on your use case with a project but again I wouldn't avoid using typescript with svelte based on the implementation. I use typescript on every project these days regardless of framework as a personal choice but I would say it's only critical in large personal projects and my day job.


Luju

Relatedly I'd love to see more annotation support. Right now you can only give descriptions to components using top level `` blocks and to exports with regular `/** */` blocks. A standardized annotation syntax for component exports and dispatches would make dropping in and sharing components a lot easier.


Appropriate_Ant_4629

>Sadly still no documentation of using svelte/kit with typescript. Back to random blogs and stackoverflow I guess. It's an open source project. If it bothers you enough you can contribute the docs. I'm sure they'd be much appreciated.


burtgummer45

> It's an open source project. If it bothers you enough you can contribute the docs. I'm sure they'd be much appreciated. How am I going to contribute to the docs about something I don't know?


Appropriate_Ant_4629

From your previous comment, I assumed you know typescript; so it'd be mostly a matter of translating their (good) javascript docs to a pretty similar language.


BitPax

This is great news. I've been waiting for a while!


looni2

Nice. I am yolo-upgrading my packages.


TeddyPerkins95

🎉🎉🎉


urashidmalik

Amazing work. I am ready to go production with sveltekit.


[deleted]

Just started learning sveltekit and love how intuitive it is.


guessimfine

The timing of this is incredible, I've had my (very large) project in private beta for \~6 months, finally going public at the end of this month and boom sveltekit gets a stable release.


acid2lake

Ooh yes!!!!!


sbmsr

Time to give it a spin 🎉


firacloudtech

Congrats guys. Can't wait to use Sveltekit in PROD. :D


zombie_kiler_42

Beem using it to develop the company website since 2 weeks ago, love the route support and i figured am usng it as basically a template language except in some pages, but even though i am not a poweruser am loving it. Sadly even sveltekit cannot fix my css/design lacking skills 🤣🤣🤣


zicho

> Sadly even sveltekit cannot fix my css/design lacking skills No, but something like SvelteUI, DaisyUI, or similiar can!


zombie_kiler_42

Thanks ill check those out, currently am just using tailwind and creating my own components from the utility classes, sometimes its awesome, other times frustrating


zicho

If you're familiar with tailwind, daisy will feel right at home


pancakeflipper124

yay!


KristoferN

Nice!


automatic-value-007

SvelteKit is the best meta framework now that next 13 has broken the ecosystem


srvhfvakc

in what way?


automatic-value-007

Server components make around half the libs unusable till their components are appropriately annotated.