question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data not accessible through 'head' method in defineNuxtComponent

See original GitHub issue

Environment

  • Operating System: Darwin
  • Node Version: v15.5.0
  • Nuxt Version: 3.0.0-rc.6
  • Package Manager: yarn@1.22.10
  • Builder: vite
  • User Config: head, modules, buildModules, css, build
  • Runtime Modules: @vueuse/motion/nuxt@2.0.0-beta.18, @nuxtjs/strapi@1.5.0
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-uqkrfk?file=app.vue

Describe the bug

The title is not filled with the variable, but it works when applying a title without variable.

Additional context

No response

Logs

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
alexandreguedjcommented, Jul 21, 2022

@ennioVisco you are absolutely right, but it would require to use the composition API that I don’t like at all

0reactions
alexandreguedjcommented, Jul 21, 2022

@danielroe yeah I used this method instead, thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I access HEAD data in component with nuxt?
Another solution I found is write a middleware that handle route.meta and populate the store. But again, it looks overcomplicated... – ManUtopiK.
Read more >
Nuxt Configuration Reference
The value of this object is accessible from server only using useRuntimeConfig . It mainly should hold private configuration which is not exposed...
Read more >
props of component defined with defineNuxtComponent not ...
Nuxt.js 3: props of component defined with defineNuxtComponent not resolved. 1. Is duplicated by 1. Is duplicated by 1 issue (0 unresolved).
Read more >
Data Fetching - 《Nuxt 3 beta Documentation》 - 书栈网
In other words, the async function does not block navigation. ... useRequestHeaders to access and proxy cookies to the API from server-side.
Read more >
Views - NuxtJS
The Views section describes all you need to configure data and views for a specific ... More information about the head method are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found