DEV Community

6 big issues with Vue.js

Max Patiiuk on June 18, 2023

I have been a full-time React.js developer for 3 years and a Vue.js developer for 3 months. Here are the issues I have with Vue.js, and why I will ...
Collapse
 
maxpatiiuk profile image
Max Patiiuk

Update from 2024:
The tooling support is still bad. e.g. github.com/prettier/prettier-vscod... (and that's the most popular formatter out there!)

Vue Vine is nice - tries to fix some issues with SFC, though the community called it "Sacrilegious" 🀣 reddit.com/r/vuejs/comments/1cyinn...

Collapse
 
intermundos profile image
intermundos

Seems like the author have no idea how to use Vue, neither has understanding of it.

Good luck with controlling your code with all "beauties" react offers you to control the codeπŸ˜‚πŸ˜‚πŸ˜‚

Collapse
 
maxpatiiuk profile image
Max Patiiuk

Thank you for the comment. I must say in 3 months of using Vue I didn't have time to get sufficient experience with it. Could you please enumerate some of the big things I am missing?

Collapse
 
intermundos profile image
intermundos

Before we dive in, may I ask you how in a 3 month of using Vue you have found all these flaws?

Vue's performance is pretty the same as of react but offers numerous advantages

  • single file components that help you to streamline the development
  • wonderful router that offers features beyond react has to offer
  • infrastructure and combination of tools that are playing really nice together
  • advanced slots features to build complex layouts at ease

You were right saying that react exposes the control to the developer, but this is not necessarily the good thing as it opens a gate for bugs and is pretty unclear how to structure your code.

After having worked with both react and Vue in production grade applications, I would go 100% Vue for any new project I have to choose between the two.

Again, all these are my personal opinion based on projects I have worked on. In any case, before you write a post of how bad the tool is, gain experience working with it to understand it better and then compare it with other solutions available.

Good luck in learning and exploring πŸ™πŸš€

Thread Thread
 
maxpatiiuk profile image
Max Patiiuk • Edited

Vue's performance is pretty the same as of react

From all the tests I have seen, Vue is a bit faster than React.

single file components that help you to streamline the development

I, along with many much more experienced developers don't agree with this. Single component per file restriction is not streamlining anything (making it harder to create components dynamically and to reuse code). Plus every config variable has to be globally exported if you want to use it between two components. And default exports is an anti-pattern (see cited sources in my article).

wonderful router that offers features beyond react has to offer

Are you talking about the Vue Router? That's a separate library. I didn't want to pollute this discussion by introducting libraries (i.e, React Router) and wanted to focus on just the core framework. But if you want to compare libraries, React has many times more solutions than Vue has to offer because of the much larger community.

infrastructure and combination of tools that are playing really nice together

Can say the same thing for React - in fact more because of a much larger community and many more packages being available (3 times more according to a quick npmjs search)

advanced slots features to build complex layouts at ease

Once again, the feature that React has without introducing custom syntax. I.e, the dynamic slot names (vuejs.org/guide/components/slots.h...) - why do I have to remember this syntax when JS has native syntax for dynamic key names?
But far my biggest problem with Vue's slots is that they are not type safe (most notably Scoped Slots), unlike in React. I might be missing something, but is there really no way to enfoce type safety for slot props and to type-safely read these props?

Good luck in learning and exploring πŸ™πŸš€

Thank you! Also, thank you for responding to the article and continuing the civil debate.

Thread Thread
 
intermundos profile image
intermundos

Civil debate is the way :)

  1. Performance
    You will not see difference between the two. User will not see the difference. Speed is redundant here.

  2. Single file components
    If you and many other developers do not think it is a good thing, it does not mean that it is bad. SFC are battle tested in production and reduce time of dealing with separate files significantly.

Config variable? The same applies to React.

  1. Router
    Let's put it aside. You are missing the point when you write that react has many more to offer. Number of packages is not the factor here. It is about how well the router plays together with the view.

  2. Slots
    Perhaps in term of types it is not perfect, but offers an elegant way to compose and manage complicated layouts with ease.

I get a light feeling that your experience with Vue might be lacking in order to understand and compare the two solutions. Try building a midsize/large app with both and then try to analyse which tool has which advantages/disadvantages.

Recently I have completed a midsize app with React and had an opportunity to compare the two. From my perspective, Vue offers better DX and less effort to develop.

Again, to each his own. This was my 5 cents.

Take care πŸ™

Collapse
 
intermundos profile image
intermundos

A per webstorm support - webstorm supports Vue for a long time and it's getting better and better. Had not have any troubles here.

The problem now is using Vue inside astro.js and astro.js support in jetbrains products.

Thread Thread
 
maxpatiiuk profile image
Max Patiiuk

WebStorm/PyCharm didn't gain TypeScript support until 3 years after the Vue 3 release (blog.jetbrains.com/webstorm/2023/0...).

Without TypeScript, I don't think Vue or React or any other framework is usable in production.

Collapse
 
mayank30 profile image
Mayank

fyi vs code is opensource and widely used development tool and it has volar extensions officially by vue community which give you very classy experience for vue development.

Each framework has its own internal definition and hence if you see react it has className for css classes its not even cleaner then Vue templates which uses regular html css

Vue 3.x has good typescript support.

And i feel vue js has better seperation of concern which make easy to learn and get started

Collapse
 
maxpatiiuk profile image
Max Patiiuk

Yes, VS Code support for Vue has been great
My main complaint was with other popular IDEs.
Most notably, WebStorm/PyCharm didn't gain TypeScript support until 3 years after the Vue 3 release - I don't know why that's accepted by the Vue community (blog.jetbrains.com/webstorm/2023/0...)

Collapse
 
blazing234 profile image
Blazing234

I mean stick to your framework that allows you to infinite loop easy.

Provide/inject is not meant to be used much, use pinia

Collapse
 
maxpatiiuk profile image
Max Patiiuk • Edited

Thank you for the comment. I must say the official doc on provide/inject does not mention pinia at all. In this article I was only evaluating the native capabilities that both frameworks provide, so that the comparison is more apples to apples rather than apples to oranges. I.e, I didn't bring redux into the conversation.

In React, I never felt like I was forced to use another external library as native hooks API felt powerful enough

Collapse
 
blazing234 profile image
Blazing234

Vue composition API is pretty much the same thing as react hooks.