News for hackers. Stuff that matters.
Re:What's new in Svelte (Dec 2020) by dfrsol on Thursday December 03, 2020 @09:47AM (#25289310)
Until they solve https://svelte.dev/faq#how-do-i-test-svelte-apps and the ecosystem matures a little (Sapper -> svelte) I wouldn't recommend using it for any production applications. I do currently use it for PoCs since it's easy to spin up and be productive quickly.
Re:What's new in Svelte (Dec 2020) by g5becks on Wednesday December 16, 2020 @05:39PM (#25449759)
Re:What's new in Svelte (Dec 2020) by enumjorge on Thursday December 03, 2020 @11:33AM (#25290658)
As someone who’s been recently doing front-end dev work full-time the question below it is also a little triggering. “Is there a router?” Not an official one but they list like 6 alternatives, two of which are apparently “very similar”.

The JS ecosystem’s penchant for giving you small components that you have to choose individually and then glue together can get a little exhausting. Hopefully the library whose approach you prefer has decent documentation, keeps up with changes to svelte, doesn’t get abandoned, etc.

Edit: apparently Sapper is a Next.js like framework that provides all the components you need for svelte in one package. Someone else said on this thread it’s eventually getting deprecated by the svelte team’s own thing called SvelteKit. Not ideal, but at least they’re working on something more integrated.

Re:What's new in Svelte (Dec 2020) by benmccann on Thursday December 10, 2020 @12:37PM (#25376162)
That FAQ was rather outdated. I've updated it to hopefully be more helpful. Thanks for pointing that out.
Re:What's new in Svelte (Dec 2020) by Can_Not on Thursday December 03, 2020 @11:29PM (#25298961)
They also don't have an answer for error handling. You can't catch them with Sentry, you can't catch then to handle them, and when they happen your app just freezes.
Re:What's new in Svelte (Dec 2020) by TehShrike on Friday December 04, 2020 @02:32PM (#25306622)
This is inaccurate – Sentry works fine in my Svelte apps, and general error-handling is no different than in any other JS environment
Re:What's new in Svelte (Dec 2020) by Can_Not on Tuesday December 08, 2020 @11:32PM (#25355384)
I didn't see any updates to the issue with lots of people complaining about svelte halting unrecoverably on errors instead of allowing error handling (thus also reporting), so no, Sentry isn't working fine in Svelte.