Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"cannot read property value of undefined" #1041

Closed
pixelastic opened this issue Aug 21, 2021 · 5 comments
Closed

"cannot read property value of undefined" #1041

pixelastic opened this issue Aug 21, 2021 · 5 comments
Labels

Comments

@pixelastic
Copy link
Contributor

pixelastic commented Aug 21, 2021

Description

Hello,

On this website, for most of the keywords no results are showing and I have the following error in the console:
image
Some other keywords seem to work fine.

Steps to reproduce

  1. Go to https://projects.pixelastic.com/reddinx/
  2. Click on the top search bar
  3. Search for local => errors displayed in the console
  4. Search for indexed => seems to work as expected

Live reproduction:

https://projects.pixelastic.com/reddinx/

Expected behavior

I have DocSearch enabled on a handful of other websites, using the same HTML theme (firost, norska, imoen) and everything is working correctly. This makes me wonder if this is an issue with the js library, or the indexed data/config?

Environment

  • OS: Linux
  • Browser: Chrome
  • DocSearch version: alpha

PS: #trust #candor #care #grit #humility ❤️

@shortcuts
Copy link
Member

Hey Tim!

I've fixed this issue in #1039 and will release the new version Monday!

This is related to the indexing (as far as I've seen in previous occurences of this bug), with an undefined lvl0.

@pixelastic
Copy link
Contributor Author

Thanks!

By the way, is there an ETA for the official release of the v3? Or is using @alpha still the way to go to have the awesome new full screen UI?

@shortcuts
Copy link
Member

shortcuts commented Aug 23, 2021

Hey Tim,

It's now fixed in the 3.0.0-alpha.40 version: #1042

Yes, using the @alpha tag is still the best option for now, we don't have an ETA as we are first revamping the infrastructure of DocSearch, but then we will fully focus on providing a stable v3 :D

@pixelastic
Copy link
Contributor Author

@shortcuts Thanks, it's no longer displaying errors.

But I have irrelevant results returned now. Duplicate entries that redirect to pages that do not match my query (except in the sidebar)

image

I don't think it is related to my markup, as I'm using the same theme on other websites. Would you want me to create a new issue for that?

@shortcuts
Copy link
Member

Hey @pixelastic, it seems that you config wasn't using the same template as the other websites, I've pushed an update here: algolia/docsearch-configs#4524 so let me know if it solves it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants