jonasmerlin / astro-seo

Makes it easy to add information that is relevant for SEO to your Astro app.
MIT License
933 stars 50 forks source link

Cannot read properties of undefined (reading 'href') with Astro v0.26 #36

Closed philschonholzer closed 2 years ago

philschonholzer commented 2 years ago

From the Migration docs Astro.request has been changed to a standard Request object.

Causes the following ERROR

Cannot read properties of undefined (reading 'href')
TypeError: Cannot read properties of undefined (reading 'href')
    at /node_modules/astro-seo/src/SEO.astro:106:28
    at renderToString (/node_modules/astro/dist/runtime/server/index.js:329:27)
    at Module.renderComponent (/node_modules/astro/dist/runtime/server/index.js:125:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
jonasmerlin commented 2 years ago

Thanks for bringing this to my attention @philschonholzer ! Fixed in v0.5.0