Nuxt 3 RC9 - layout warning
See original GitHub issueEnvironment
“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
Issue Analytics
- State:
- Created a year ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Nuxt3 - [Vue warn]: Component inside <Transition> renders ...
I'm getting these two vue warnings: nuxt3 vue warnings. I validated that all components, pages and layouts have a single root element.
Read more >Nuxt 3 Crash Course #6 - Layouts - YouTube
In this Nuxt lesson, you'll lear how to make layout files for your pages. Watch the whole course now (without ads) on Net...
Read more >Changelog - Nuxt Content
module: Do not warn when sources is empty (42fffc98); module: Set default hostname for dev socket (#1624); Document Driven: Layout prefetching (#1637) ...
Read more >Nuxt 3 APP Failed to resolve module specifier "Vue" - Support
Hi, i`m trying to deploy a nuxt 3 app and I'm getting a blank page, along with the message: Uncaught TypeError: Failed to...
Read more >BootstrapVue Nuxt.js Starter Project - CodeSandbox
layouts. pages. index.vue. codesandbox.js. nuxt.config.js. package.json. yarn.lock. Dependencies. bootstrap. ^4.5.3 (4.6.0).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you do not have any layouts, then you do not need to have
<NuxtLayout>
in yourapp.vue
file. (If you do have a<NuxtLayout>
then you should also create a default layout as suggested above.)Mhm not sure if its related but i have the same issue:
full
layout does not have a single root node and will cause errors when navigating between routes.layout/full.vue
and my app.vue:
Linux
v16.13.1
3.0.0-rc.12-27746784.92ff066
0.5.4-27726613.640c2b7
yarn@1.21.1
vite
buildModules
,pageTransition
,layoutTransition
,publicRuntimeConfig
-
nuxt-windicss@2.5.2