askorama / orama

🌌 Fast, dependency-free, full-text and vector search engine with typo tolerance, filters, facets, stemming, and more. Works with any JavaScript runtime, browser, server, service!

Home Page:https://docs.orama.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

DominusKelvin opened this issue · 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