News for hackers. Stuff that matters.
Re:Migrating from Vue 2 to Svelte by Oddskar on Friday December 02, 2022 @03:56AM (#33828300)
As someone working in a large Vue 2 app:

- Very poor typescript support.

- Poor performance (compared to Vue 3).

- Ecosystem has already started lagging behind (e.g. Vue Testing Library for v2 has out of date dependencies, and no one is actively maintaining it)

- Nuxt 2 hasn't made any releases in ages.

Re:Migrating from Vue 2 to Svelte by Semaphor on Friday December 02, 2022 @04:37AM (#33828532)
> - Very poor typescript support.

If you use class components and prop decorators, the TS support is actually pretty nice. Kinda boilerplate heavy, but nice.

Re:Migrating from Vue 2 to Svelte by lol768 on Friday December 02, 2022 @04:47AM (#33828598)
I really enjoyed using these tools, it felt idiomatic to have a class per component with props and data as fields on the class - but it seems like there's now no upgrade path for us folks in Vue 3 land.
Re:Migrating from Vue 2 to Svelte by tomonl on Friday December 02, 2022 @04:51AM (#33828621)
I used those too, but it makes the upgrade to Vue 3 quite a bit harder.
Re:Migrating from Vue 2 to Svelte by depressedpanda on Friday December 02, 2022 @05:37AM (#33828835)
I've worked professionally in both Vue 2 and React. Even with class components and prop decorators you still have the annoying Vue template DSL where you don't get any TS support.

In comparison JSX will be checked by typescript, so in that regard JSX (and therefore React) is superior.

Re:Migrating from Vue 2 to Svelte by Hawxy on Friday December 02, 2022 @09:59AM (#33831304)
Composition API has the best Typescript support available in Vue 2. It's supported out of the box in 2.7, and a plugin in previous versions. The decorator syntax is unsupported in Vue 3 and shouldn't be used.
Re:Migrating from Vue 2 to Svelte by _s_a_m_ on Friday December 02, 2022 @04:14AM (#33828405)
- Nuxt only matter if you want to use it, is not Vues problem, because you talking about another software which addresses a different problem. - Typescript support is only a problem if you want to use Typescript, imagine, there is also a world beyond TS. - Performance, often a matter of design and understanding your framework
Re:Migrating from Vue 2 to Svelte by CharlesW on Friday December 02, 2022 @08:45AM (#33830317)
> - Nuxt 2 hasn't made any releases in ages.

FWIW, Nuxt 3 was released in November. https://nuxt.com/v3