Nuxt 4 module migration guide
2 Replies
Hi @Tirius. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
At this time, there is no dedicated Nuxt 4 module migration guide available in the official documentation. The current module migration documentation focuses on migrating modules from Nuxt 2 to Nuxt 3, including compatibility tips, use of @nuxt/kit, and ESM migration. It does not yet cover Nuxt 4-specific changes or migration steps.
However, you can already test many Nuxt 4 breaking changes in Nuxt 3.12+ by setting
future.compatibilityVersion: 4
in your nuxt.config.ts
. This allows you to prepare your modules for Nuxt 4 ahead of its official release. The documentation notes that breaking or significant changes will be updated in the upgrade guide, so it's recommended to check back regularly for updates as Nuxt 4 approaches release. For now, module authors should continue to follow the Nuxt 3 migration and compatibility practices, and monitor the upgrade guide for new information as it becomes available Testing Nuxt 4 Module Migration.
If you are preparing modules for Nuxt 4, consider:
- Testing with compatibilityVersion: 4
to catch breaking changes early.
- Following the Nuxt 3 module authoring best practices (using @nuxt/kit
, ESM, etc.).
- Watching for updates in the official documentation as Nuxt 4 nears release.
If you need to track the latest changes or migration steps, keep an eye on the Nuxt 4 upgrade guide and related announcements.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@247772269236060160> Kapa.ai is still learning and improving, please let me know how I did by reacting below.