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

Skeleton placeholders produce errors #262

Open
fago opened this issue Sep 10, 2024 · 3 comments
Open

Skeleton placeholders produce errors #262

fago opened this issue Sep 10, 2024 · 3 comments

Comments

@fago
Copy link
Contributor

fago commented Sep 10, 2024

on the clean nuxt-demo:

  at <Default data-v-inspector="pages/[...slug].vue:3:5" ref=Ref< undefined > > 
  at <LayoutLoader key="default" layoutProps= { 'data-v-inspector': 'pages/[...slug].vue:3:5',
  ref:
   RefImpl {
     dep:
      Dep {
        computed: undefined,
        version: 0,
        activeLink: undefined,
        subs: undefined,
        subsHead: undefined },
     __v_isRef: true,
     __v_isShallow: false,
     _rawValue: undefined,
     _value: undefined } } name="default" > 
  at <NuxtLayoutProvider layoutProps= { 'data-v-inspector': 'pages/[...slug].vue:3:5',
  ref:
   RefImpl {
     dep:
WARN  [nuxt] Failed to stringify dev server logs. Received DevalueError: Cannot stringify a function. You can define your own reducer/reviver for rich types following the instructions in https://nuxt.com/docs/api/composables/use-nuxt-app#payload.
@fago
Copy link
Contributor Author

fago commented Sep 10, 2024

also

 WARN  [Vue warn]: Missing required prop: "type" 
  at <NodeDefault element="node-article-full" contact="max@example.com" created="1689858892"  ... > 
  at <AsyncComponentWrapper element="node-article-full" contact="max@example.com" created="1689858892"  ... > 
  at <Default data-v-inspector="pages/[...slug].vue:3:5" ref=Ref< undefined > > 
  at <LayoutLoader key="default" layoutProps= { 'data-v-inspector': 'pages/[...slug].vue:3:5',
  ref:
   RefImpl {
     dep:
      Dep {
        computed: undefined,
        version: 0,
        activeLink: undefined,
        subs: undefined,
        subsHead: undefined },
     __v_isRef: true,
     __v_isShallow: false,
     _rawValue: undefined,
     _value: undefined } } name="default" > 
  at <NuxtLayoutProvider layoutProps= { 'data-v-inspector': 'pages/[...slug].vue:3:5',
  ref:

@fago
Copy link
Contributor Author

fago commented Sep 10, 2024

also there are warnings when the props of node--default are not fulfilled, we need to make it better make all props optional there. see demo

@fago
Copy link
Contributor Author

fago commented Sep 10, 2024

also, it seems the wildcard page is not using the new helper yet:

// Set to false to support custom layouts, using <NuxtLayout> instead. definePageMeta({ layout: false, }) const layout = computed(() => { return page.value.page_layout || 'default' })

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

No branches or pull requests

1 participant