#Are certain properties of the layer nuxt.config.ts ignored?
3 messages · Page 1 of 1 (latest)
Hi @brisk fiber. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Yes, you are correct in observing that certain properties of the layer's nuxt.config.ts seem to be ignored, specifically the future.compatibilityVersion setting. This is a known behavior with layers and the compatibilityVersion feature flag.
According to the Nuxt documentation on upgrading, there's an important note regarding this:
"For now, you need to define the compatibility version in each layer that opts into Nuxt 4 behavior. This will not be required after Nuxt 4 is released."
This means that when using layers, you currently need to set the compatibilityVersion in both your layer's nuxt.config.ts and in your project's nuxt.config.ts for it to take effect properly.
This behavior is temporary and is expected to change once Nuxt 4 is officially released. For now, to ensure your project is treated as Nuxt 4, you should include the compatibilityVersion setting in your project's configuration as well.