Zencloud Technologies
Vue 2 to Vue 3 migration guide
Engineering

Vue 2 to Vue 3 Migration Guide

23 November 2026•8 min

Vue 2 reached end of life on 31 December 2023, and Nuxt 2 followed on 30 June 2024. Neither receives updates or security fixes from their core teams any more. If your product still runs on Vue 2, the question is no longer whether to migrate to Vue 3, but how to do it without freezing feature work.

This guide covers the official end-of-life facts, every Vue 3 breaking change worth planning for, how the migration build (@vue/compat) works, and how two real teams (Crisp and GitLab) ran their migrations.

Key takeaways

  • Vue 2's final release is 2.7.16. Nuxt 2's final release is 2.18.0. No further fixes will ship from the core teams.
  • Paid extended support exists (HeroDevs Never-Ending Support), but it buys time; it does not modernize your app.
  • The official migration build lets a Vue 3 app run with configurable Vue 2 behaviour and warnings, so you can migrate incrementally.
  • The main blockers are usually UI libraries built on Vue 2 internals (Vuetify 2, older Quasar or Element UI), not your own code.
  • Crisp migrated about 250,000 lines of code with two developers in roughly two weeks. GitLab migrated page by page behind feature flags.

Is Vue 2 still supported?

No. Vue 2 reached end of life on 31 December 2023. The Vue team stated that Vue 2 will receive no further updates, improvements or fixes after that date, and 2.7.16 is the final release. Vue 3 has been the default version since 7 February 2022.

FrameworkEnd of lifeFinal releaseSuccessor default since
Vue 231 Dec 20232.7.16Vue 3: 7 Feb 2022
Nuxt 230 Jun 20242.18.0Nuxt 3: Nov 2022

Sources: the official Vue.js and Nuxt blogs.

What about extended support? HeroDevs offers paid Never-Ending Support (NES) for Vue 2 and Nuxt 2, including security patches (the Vue blog cites a 14-day SLA). It suits apps that are close to retirement. For a product you plan to keep growing, it postpones the migration rather than replacing it.

What breaks when you move from Vue 2 to Vue 3?

The official migration guide lists breaking changes across the global API, templates, components and render functions. These are the ones that generate most of the work:

Global API

  • new Vue() is replaced by createApp(). Global config, plugins, mixins and components now attach to an app instance, not the global Vue object.

Template directives

  • v-model on components changes its default prop and event names (modelValue / update:modelValue) and replaces .sync.
  • key usage on <template v-for> and conditional branches changes.
  • v-if now takes precedence over v-for on the same element.
  • v-bind merge order now depends on attribute order.
  • The .native modifier on v-on is removed.

Components and render functions

  • Functional components and async components have new syntax.
  • Components should declare emitted events in an emits option.
  • The render function API changes (h is imported globally).
  • $scopedSlots is merged into $slots, and $listeners is merged into $attrs.

Removed APIs

  • KeyCode modifiers (@keyup.13)
  • The events API ($on, $off, $once), which breaks the common "event bus" pattern
  • Filters ({{ price | currency }})
  • inline-template
  • $children
  • propsData

Practical tip: search your codebase for $on(, | inside template interpolations, .native and $children before you estimate. Those four patterns predict most of the manual work.

How does the Vue migration build (@vue/compat) work?

The migration build is a version of Vue 3 that can behave like Vue 2 and warns you about every incompatible usage. You install Vue 3 alongside @vue/compat, alias vue to it, and the app runs while logging deprecations. You can then switch compatibility off per feature or per component with compatConfig, so you migrate one component at a time.

The official workflow looks like this:

  1. Upgrade your build tooling (vue-loader, Vite or Vue CLI) to versions that support Vue 3.
  2. Install Vue 3 and @vue/compat, and alias vue to @vue/compat.
  3. Fix compile-time errors, then work through runtime warnings.
  4. Upgrade Vue Router to v4 and Vuex to v4 (or move to Pinia).
  5. Opt individual components into full Vue 3 mode.
  6. Remove the compat build once warnings are gone.

Limitations you need to know

  • Libraries that depend on Vue 2 internals will not work in compat mode. The docs name Vuetify, Quasar and Element UI. You need their Vue 3 versions (for example Vuetify 3, Element Plus).
  • IE11 is not supported by Vue 3. If you must support it, you cannot move.
  • Custom SSR setups are hard to migrate through the compat build.
  • Compat mode is temporary. The Vue team says the migration build will eventually stop being published, and Crisp observed that compat mode runs slower. Do not ship it as your end state.

How have real teams migrated?

Crisp: big-bang migration in about two weeks

Crisp, the customer messaging platform, migrated its app of roughly 250,000 lines of code with two developers in about two weeks. They worked on a parallel vue3 branch using @vue/compat. Their main tasks:

  • Replaced about 200 filter usages with methods
  • Swapped their event bus for the Mitt library
  • Forked about 20% of their third-party libraries that had no Vue 3 version, each taking 30 minutes to half a day

After the migration they measured a JavaScript heap reduction of 20–30%, and up to 50% on some list-heavy views.

GitLab: incremental, page by page

GitLab's frontend is far larger, so it took the incremental route. It ran @vue/compat in development and migrated individual pages behind feature flags, letting Vue 2 and Vue 3 code coexist. Problems it documented:

  • props default factory functions no longer have access to this
  • Pinia stores cannot be shared across Vue 2 and Vue 3 instances
  • Router-provided props were not reactive in some setups

Big-bang or incremental: which should you choose?

FactorBig-bang branch (Crisp)Incremental (GitLab)
Codebase sizeSmall to mid-sizeLarge, many teams
Feature freezeShort freeze acceptableNo freeze possible
Blocking librariesFew, or forkableMany, replaced over time
Risk profileOne big releaseMany small releases
Coordination costLowHigh (flags, dual builds)

What about Nuxt 2 to Nuxt 3?

Nuxt 3 is a rewrite on Vue 3, Vite and the Nitro server engine. A Nuxt migration therefore includes the Vue 3 changes above plus Nuxt-specific changes to configuration, data fetching and modules. Treat it as a separate workstream. Check that each Nuxt module you use has a Nuxt 3 version before you plan the timeline.

A 6-step Vue 3 migration plan

  1. Audit. Inventory components, the four high-risk patterns (filters, event bus, .native, $children) and every UI library and plugin.
  2. Resolve library blockers. Choose a Vue 3 replacement or a fork for each library. This sets your critical path.
  3. Upgrade tooling and enable @vue/compat. Get the app running on Vue 3 with warnings.
  4. Migrate state and routing. Vue Router 4, then Vuex 4 or Pinia.
  5. Clear warnings component by component. Opt each component into Vue 3 mode with compatConfig once it is clean.
  6. Remove compat and harden. Drop @vue/compat, run regression and visual tests, and monitor performance after release.

Should you migrate in-house or bring in Vue specialists?

If your team knows the codebase but is busy shipping features, the migration will drift. Many teams keep their core developers on the roadmap and add migration specialists for the duration. You can hire Vue.js developers from Zencloud who handle Vue 2 → Vue 3 and Nuxt migrations. They onboard in 1–2 weeks and work in your repository and sprint process. For larger rebuilds, see our application modernization service.

FAQs

Is it safe to keep running Vue 2 in production?

It is a growing risk. Vue 2 has received no official fixes since 31 December 2023. Paid extended support can cover security patches, but your libraries and tooling will keep moving to Vue 3.

Can Vue 2 and Vue 3 run in the same app?

Yes, temporarily. The @vue/compat migration build runs Vue 3 with Vue 2 behaviour enabled. GitLab also ran Vue 2 and Vue 3 pages side by side behind feature flags.

How long does a Vue 3 migration take?

It depends on library blockers more than code size. Crisp migrated about 250,000 lines in roughly two weeks with two developers. Apps tied to Vuetify 2 or other Vue 2-only libraries take longer.

Should I move from Vuex to Pinia during the migration?

You can upgrade to Vuex 4 first to reduce risk. Pinia is the officially recommended store for Vue 3. Note GitLab's finding: Pinia stores cannot be shared between Vue 2 and Vue 3 instances.

Do I need to migrate Nuxt 2 at the same time?

If your app is built on Nuxt 2, yes. Nuxt 2 reached end of life on 30 June 2024, and Nuxt 3 requires Vue 3. Plan it as a parallel workstream.

Plan your Vue 3 migration

A migration plan is only as good as its library audit. Book a free call and our Vue team will review your dependencies, recommend big-bang or incremental, and estimate the work.


Sources: Vue.js blog, "Vue 2 is now EOL" (15 Dec 2023); Nuxt blog, "Nuxt 2 end of life"; Vue 3 Migration Guide (breaking changes and migration build); Crisp engineering blog, Vue 3 migration case study (27 Aug 2021); GitLab frontend documentation, Vue 3 migration.