-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt 3 RC9 - layout warning #14818
Comments
Hello @EmilyFlocc , |
@EmilyFlocc I seems like the default nuxt is using when not having a default.vue layout might have more root nodes. Background:
|
Hi both, thanks for the quick response. Yeah thats correct I don't have a layouts file, I have app.vue in root and error.vue in root. I thought in Nuxt 3 you didn't use layouts in the same way as nuxt 2? Or have I misread the docs? |
If you do not have any layouts, then you do not need to have |
Thank you for explaining! |
Hi, I'm having the same warning despite using no layouts. I also removed the |
Thanks for reporting @ckald ❤️ |
Mhm not sure if its related but i have the same issue:
layout/full.vue
and my app.vue:
|
Sounds like this one is related to my issue. I was able to re-create this simply by putting |
@jacobfogolyan That's unrelated to the issue. The warning you get is right. That will break transitions, which rely on a single root node. |
Environment
"nuxt": "3.0.0-rc.9",
Reproduction
I just upgraded from rc-8 to rc-9 and I now get this warning
Describe the bug
New warning in browser:
[nuxt]
default
layout does not have a single root node and will cause errors when navigating between routes.My app.vue looks like this to include the header and footer components on each page:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: