Skip to content
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

[DOCS] NuxtLayout warn vs documentation #15240

Closed
Triloworld opened this issue Oct 23, 2022 · 5 comments
Closed

[DOCS] NuxtLayout warn vs documentation #15240

Triloworld opened this issue Oct 23, 2022 · 5 comments

Comments

@Triloworld
Copy link

Triloworld commented Oct 23, 2022

Environment

Oficial page - https://v3.nuxtjs.org/api/components/nuxt-layout
Local env is:

Nuxt 3.0.0-rc.12 with Nitro 0.6.0

Reproduction

https://v3.nuxtjs.org/api/components/nuxt-layout

Describe the bug

App.vue have issue on declared way to use layouts:

You can use component to activate default layout on app.vue or error.vue.

And in app get this message:

WARN Using <NuxtLayout> inside app.vue will cause unwanted layout shifting in your application.Consider removing <NuxtLayout> from app.vue and using it in your pages.

Additional context

App.vue

<template>
  <NuxtLayout>
    <NuxtPage />
  </NuxtLayout>
</template>

Logs

No response

Copy link
Member

This warning comes from nuxt/content. The issue is an upstream one and should be resolved when vuejs/core#6736 is merged.

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
@JPustkuchen
Copy link

In the meantime, due to #15240 could you perhaps add a "nuxt/content:" prefix to the message:

WARN Using inside app.vue will cause unwanted layout shifting in your application.Consider removing from app.vue and using it in your pages.
as this is a bit confusing, if you don't know the reaosns or where it comes from?

sth. like this:

WARN nuxt/content: Using inside app.vue will cause unwanted layout shifting in your application.Consider removing from app.vue and using it in your pages.

@adamdehaven
Copy link
Contributor

@danielroe this is still an issue a year later -- any plan to resolve?

@xarthurx
Copy link

This warning comes from nuxt/content. The issue is an upstream one and should be resolved when vuejs/core#6736 is merged.

The upstream is merged, but the issue still exist.

@xarthurx
Copy link

FYI, if using Nuxt Content, this warning only appears when DataDriven: true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants