oramasearch/orama

Cannot read properties of undefined ( reading: 'title') in Vitepress

Closed this issue · 3 comments

Describe the bug

When I use the Orama plugin for Vitepress on Sailscasts Docs I get an error on the console that Cannot read properties of undefined ( reading: 'title')

To Reproduce

  1. Initialize the Orama plugin for Vitepress.
  2. Make a search

Expected behavior

I expected for Orama to not error out for pages that don't have title

Environment Info

Node: v21.7.1
@orama/plugin-vitepress: 2.0.16

Affected areas

Search

Additional context

CleanShot 2024-04-17 at 17 57 40@2x

Hey!

Sorry about that, I just made a PR that will fix this error and it will be available in the next version

Thanks @SaraVieira and FYI, I think the problem still persist as I still receive the error even after upgrading to 2.0.18

CleanShot 2024-05-20 at 09 12 24@2x

There hasn't been a new one after my PR, let me ask today for a new release