You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to resolve dynamic ogImage object value #769
Updating an example to use this structure should be able to reproduce.
Describe the bug
When setting an ogImage using a ref or a getter function on the useSeoMeta composable in a Nuxt application using an array or object syntax, the value of the meta tag displays as [Object Object]:
Hi! I tried reproducing this on both v2.1.15 and v3.1.3 but couldn't get [object Object] output in any of the three cases. All getter and computed variants produce correct tags in my tests.
Would you be able to share a minimal reproduction (a StackBlitz or repo)? That would help pinpoint exactly where it's going wrong for you.
This could mean it is not directly related to an issue with unhead, but difficult to say without deeper investigation. At least explains why it is not directly reproducible.
Hi, so one of the Nuxt package versions accidentally shipped with Unhead v3, which forced Nuxt to use the tree-shake transformer for useSeoMeta. This had the bug you described, it's fixed in #770. I'll have a release tomorrow.
Nuxt SEO Utils also uses this, possibly an accidental v3 major upgrade there too if it's not the Nuxt one 🤔
Activity
MaitreyeeDeshmukh commentedon Jun 11, 2026
Hi! I tried reproducing this on both v2.1.15 and v3.1.3 but couldn't get [object Object] output in any of the three cases. All getter and computed variants produce correct tags in my tests.
Would you be able to share a minimal reproduction (a StackBlitz or repo)? That would help pinpoint exactly where it's going wrong for you.
danielwaltz commentedon Jun 11, 2026
Ah, I found the missing thread! I tested on a few of my other Nuxt projects and found that it was indeed inconsistent to reproduce. I only had luck reproducing when using Nuxt projects with the
nuxt-seo-utilsmodule loaded (https://nuxt.com/modules/seo-experiments).This could mean it is not directly related to an issue with
unhead, but difficult to say without deeper investigation. At least explains why it is not directly reproducible.I made a minimal reproduction here that has the module loaded so you can see the issue: https://stackblitz.com/edit/nuxt-starter-fetxjape?file=app.vue
harlan-zw commentedon Jun 11, 2026
Hi, so one of the Nuxt package versions accidentally shipped with Unhead v3, which forced Nuxt to use the tree-shake transformer for
useSeoMeta. This had the bug you described, it's fixed in #770. I'll have a release tomorrow.Nuxt SEO Utils also uses this, possibly an accidental v3 major upgrade there too if it's not the Nuxt one 🤔
fix(bundler): resolve dynamic ogImage in useSeoMeta transform (#770)
harlan-zw commentedon Jun 12, 2026
Out now :)
danielwaltz commentedon Jun 12, 2026
Can confirm after updating the issue is resolved. Appreciate the quick work! ❤️