Frameworks & Languages
Upgrading From Vue 2 to Vue 3 Without Rewriting Everything
Vue 2 reached end of life at the end of 2023, but moving to Vue 3 rarely needs a rewrite. Here is what actually breaks, why the libraries are usually the bigger job, and the staged route we use to keep the app shipping throughout.

Vue 2 reached end of life on 31 December 2023. It still runs, and nothing switched off on 1 January, but it no longer receives security fixes, new browser and tooling support has moved on, and every month the libraries around it drift further away. Many teams know they need to move to Vue 3 and put it off because the upgrade sounds like a rewrite. In most applications it is not.
Much of our Vue.js and Nuxt development work at the moment is exactly this kind of upgrade: taking a Vue 2 application that the business depends on and moving it to Vue 3 in stages, while the team keeps shipping features. This is the route we follow, and the places where the effort really goes.
What Actually Breaks Between Vue 2 and Vue 3
The good news first: the Options API is fully supported in Vue 3. Components written with data, methods, computed and watch do not need to be rewritten with the Composition API, and we do not recommend doing so as part of the upgrade. The breaking changes are narrower than people expect:
- The global API. new Vue() becomes createApp(), and plugins, mixins and global components are registered on the app instance rather than on the global Vue object.
- v-model on components. The default prop and event change from value and input to modelValue and update:modelValue, and the .sync modifier is replaced by v-model:propName. Every custom form input in the codebase is affected.
- Removed features. Filters are gone (use methods or computed properties), and so are $on, $off and $once, which breaks the common "event bus" pattern. $listeners is merged into $attrs.
- Renamed lifecycle hooks and classes. beforeDestroy and destroyed become beforeUnmount and unmounted, and transition classes such as v-enter become v-enter-from.
- Subtle behaviour changes. v-if now takes priority over v-for on the same element, and the reactivity system is based on Proxies, so Vue.set workarounds are no longer needed but code that relied on Vue 2's quirks may behave differently.
None of this is hard individually. The work is in finding every instance, and in the libraries the application depends on.
The Ecosystem Is Usually the Real Job
In our experience the framework changes take less time than the dependencies. Before estimating, we list every package and check its Vue 3 story:
- Vue Router 3 to 4. Mostly mechanical: createRouter and createWebHistory, and catch-all routes rewritten as /:pathMatch(.*)*. Navigation guards keep working, though next() is now optional.
- Vuex to Pinia. Vuex 4 works with Vue 3, so the store can stay as it is during the upgrade. Pinia is now the official recommendation, and moving to it module by module afterwards is a good follow-up rather than part of the critical path.
- Component libraries. This is where the largest surprises live. Vuetify 2 to 3 and Element UI to Element Plus are close to a rework of every screen that uses them, and BootstrapVue never supported Vue 3, so it needs a replacement.
- Build tooling. Vue CLI is in maintenance mode. Moving to Vite gives much faster development builds, and it can be done before the framework upgrade, on Vue 2.7, which splits the risk.
- Testing. Vue Test Utils 1 becomes version 2, with some API changes, and most teams switch from Jest to Vitest at the same time since it shares Vite's configuration.
If a key library has no Vue 3 version, that decision needs making early, because it shapes the whole plan.
A Staged Route That Keeps the App Shipping
- Get to Vue 2.7 first. Version 2.7 back-ported the Composition API and <script setup>, and fixing its deprecation warnings removes a slice of the Vue 3 work while you are still on familiar ground.
- Move the build to Vite and get the test suite running reliably. Without tests, every later step relies on manual checking.
- Replace dead-end dependencies with ones that support both versions, or isolate them behind your own wrapper components so only the wrappers change later.
- Switch to the migration build. @vue/compat is Vue 3 running in a Vue 2 compatible mode. The application runs, and every use of removed or changed behaviour logs a warning. Compatibility can be configured globally or per component, so you can switch individual components to full Vue 3 behaviour as they are fixed.
- Upgrade Vue Router and the remaining libraries, then work through the warnings feature by feature, releasing as you go.
- Remove the compat build once the warnings are gone, and run the full regression suite again.
The migration build has limits. Libraries that reach into Vue 2's internals will not work under it, and Vue 3 does not support Internet Explorer 11 at all. If either applies to you, plan for it before step four.
What About Nuxt 2?
Nuxt 2 reached its own end of life in mid-2024, and the jump to Nuxt 3 or later is bigger than the Vue upgrade alone, because the server engine, configuration, data fetching and module system all changed. For a Nuxt site we usually treat it as a structured migration: pages and components move across largely intact, while asyncData and fetch become useAsyncData and useFetch, and Nuxt 2 modules are replaced with their current equivalents. If you are weighing Nuxt for a content site, our article on Nuxt for content-heavy sites covers where it fits. Because routes, rendering and metadata all move, we check redirects, canonical tags and structured data against the old site as part of technical SEO before switching over.
When a Rewrite Is the Better Call
Occasionally the staged route is not worth it. We recommend rebuilding, in Vue 3 or another framework, when the application is small enough that a rewrite is quicker than the dependency work, when most screens depend on a component library with no upgrade path, or when the product itself needs redesigning anyway. If you are reconsidering the framework at the same time, our comparison of React, Vue, Angular and Svelte is a sensible starting point. For everyone else, an incremental upgrade keeps the knowledge built into the existing code, and that is usually worth more than a fresh start.
Keeping It Upgraded Afterwards
The expensive part of this upgrade is the backlog of years without one. Once on Vue 3, keeping dependencies current a few times a year is routine work, and it is exactly what our website maintenance and support plans cover. Larger front-end changes, such as moving the store to Pinia or adopting TypeScript gradually, fit naturally into our wider front-end development work once the platform is stable.
If you are running Vue 2 and want to know what the move would involve, send us your package.json and a rough count of components. We will tell you where the effort is likely to sit and whether a staged upgrade or a rebuild makes more sense.
Frequently Asked Questions
Is it safe to keep running a Vue 2 application now that it is end of life?
It will keep working, but the risk grows over time. Vue 2 itself no longer receives security fixes, and the libraries around it stop getting updates too, so vulnerabilities in dependencies may never be patched. Commercial extended-support options exist if you need more time, but they buy time rather than remove the need to upgrade.
Do we need to rewrite our components with the Composition API?
No. The Options API is a first-class part of Vue 3 and will remain so. Converting components to the Composition API during the upgrade adds work and risk for no immediate gain. Teams often adopt it gradually afterwards, for new components or for logic they want to share between components.
How long does a Vue 2 to Vue 3 upgrade usually take?
It depends far more on dependencies than on the number of components. An application using Vue Router, Vuex and a few small libraries can move quickly, while one built on Vuetify 2 or BootstrapVue may need most screens reworked. A dependency audit at the start gives a realistic estimate before any code changes.
Can we keep releasing features while the upgrade is in progress?
Yes, and we plan for it. Moving to Vue 2.7 and Vite first, then using the compatibility build, means the application stays releasable at every step. Feature work continues on the same branch, and new code is written in a way that already suits Vue 3, so the two efforts do not collide.
Should we move from Vuex to Pinia at the same time?
We usually keep Vuex 4 during the upgrade because it works with Vue 3 and keeps the change smaller. Pinia is the recommended store for new work, with simpler syntax and better TypeScript support, so migrating store modules one at a time after the upgrade is a sensible next step.





