Migrating from Vue 2 Class Components
summary
Pocket Prep migrates its four apps plus a shared UI library from Vue 2 class components to Vue 3 by installing view-facing-decorator and doing a global find/replace of the old class/decorator imports. Migration mainly works: most components run on V3 after swapping imports, but class property initializers that reference this must move to lifecycle hooks, emitted events need declarations (the emit decorator automates some of that), and router hooks nest differently. Team then migrates components incrementally toward script setup for a cleaner TypeScript experience.
AI-written summary · about
chapters (4)
- 0:00Migrating from Vue 2 Class Components
- 1:29Pocket Prep's story
- 2:07Options API - Class Components
- 10:57Class Components - Composition API
related talks
32mMigrating Vue 2 to Vue 3
35mHow to migrate a large app to Vue 3
05mMigrating to Vue 3
32mAn Phan - Vue 2 to 3 migration: A real-life experience - Vuejs Amsterdam 2022
46mVUE Panel
44mFrom Legacy to Vue.js
26mMigrating a big old codebase to Vue 3: what I'm excited about
34mBeyond the Sunset: Navigating through Vue.js 2 EOL and Vue 3 Migration
