Migrations
Nuxt 3 to 4 Migration
Nuxt 4 introduces several new features and improvements, including performance and API consistency improvements.
Codemod supports a mostly automated Nuxt 4 upgrade experience. This page provides tips and resources you may need for a successful migration.
Getting started
Migration Steps
1
Opt in to Nuxt 4
- Upgrade to the latest version of Nuxt:
- Set
compatibilityVersion
to match Nuxt 4 behavior:nuxt.config.ts
For more info, please refer to opting in to Nuxt 4.
2
Run migration codemods
The recipe includes the following codemods:
- nuxt/4/absolute-watch-paths
- nuxt/4/default-data-error-value
- nuxt/4/deprecated-dedupe-value
- nuxt/4/file-structure
- nuxt/4/shallow-data-reactivity
For a list of all available codemods, see Codemod Registry.
Was this page helpful?