N
Nuxt3mo ago
Omnislash

future after update from v3 to v4

Hello Kapa I updated from nuxt v3 to nuxt v4, everything works well Do I have to keep this or any part of it ?
future: {
compatibilityVersion: 4
},
compatibilityDate: '2025-05-15',
future: {
compatibilityVersion: 4
},
compatibilityDate: '2025-05-15',
2 Replies
kapa.ai
kapa.ai3mo ago
Hi @Omnislash. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- After upgrading from Nuxt v3 to v4, you do not need to keep future: { compatibilityVersion: 4 } in your nuxt.config file. In Nuxt 4, this flag is no longer configurable or necessary—Nuxt 4 enables all v4 features by default, and support for compatibilityVersion: 3 has been removed entirely. The documentation and codebase confirm that this option is now obsolete in v4 and will have no effect if present Docs: Nuxt 4 Upgrade Guide PR: remove support for compatibilityVersion: 3. However, the compatibilityDate option is still valid and can be kept if you want to control the behavior of certain features in Nuxt, Nitro, or modules that may change without a major version bump. It is not required, but you can keep it if you want to lock in specific behaviors for your app Docs: compatibilityDate. Summary:
- Remove future: { compatibilityVersion: 4 }—it is not needed in Nuxt 4. - compatibilityDate is optional; keep it if you want to control feature behavior, otherwise you can remove it. Let me know if you need more details! ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3mo ago
<@305772639438503936> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?