nuxt-modules / og-image

Generate OG Images with Vue templates in Nuxt.
https://nuxtseo.com/og-image
400 stars 25 forks source link

new title weridness #92

Closed jpengelbrecht closed 9 months ago

jpengelbrecht commented 11 months ago

Describe the bug

titles work fine on page, however og image cant read it. I am using "nuxt-seo-kit": "1.3.13" and "nuxt-og-image": "2.0.25" i also tried "nuxt-og-image": "2.1.1",

Reproduction

No response

System / Nuxt Info

------------------------------
- Operating System: Darwin
- Node Version:     v18.10.0
- Nuxt Version:     3.7.4
- CLI Version:      3.9.0
- Nitro Version:    2.6.3
- Package Manager:  npm@8.19.2
- Builder:          -
- User Config:      modules, site, turnstile, sitemap, robots, schemaOrg, linkChecker, app, routeRules, extends, typescript, sourcemap, devServer, htmlValidator, image, runtimeConfig, nitro, appConfig, ignore, hooks, css, vite
- Runtime Modules:  @pinia/nuxt@0.4.11, @nuxt/content@2.7.2, @nuxt/image@1.0.0-rc.3, @vueuse/motion/nuxt@2.0.0, nuxt-calendly@0.1.14, vue3-carousel-nuxt@1.1.0, @nuxtjs/turnstile@0.6.3
- Build Modules:    -
------------------------------
jpengelbrecht commented 11 months ago

seems to be related to nuxt version < 3.7.1

harlan-zw commented 11 months ago

Are you able to provide a reproduction https://stackblitz.com/edit/nuxt-starter-pxs3wk?file=pages/index.vue

:pray:

jpengelbrecht commented 11 months ago

@harlan-zw that that blitz with be able to reproduce the issue, the issue is with seo toolkit and og image, somehow the title doesnt like through after nuxt 3.7.1 when using a OG image static template.
image

What is also interesting is updating to your https://www.npmjs.com/search?q=nuxtseo%20module new module solves it. but the module is still new and hard to migrate to at the moment.

so the issue seems to be between "nuxt": "3.7.4", "nuxt-seo-kit": "1.3.12", "nuxt-og-image": "2.0.25", and using templates described here https://nuxtseo.com/og-image/getting-started/your-first-template.

sorry i wish i could be more help, though i cant figure out how to do a reproduction for you other than a starter repo

harlan-zw commented 9 months ago

Seems to be fixed in the latest versions. You will need to upgrade to Nuxt SEO.

Let me know if you're still having issues though.