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

Typerror in development #33

Open
xf- opened this issue Dec 10, 2020 · 0 comments
Open

Typerror in development #33

xf- opened this issue Dec 10, 2020 · 0 comments

Comments

@xf-
Copy link
Contributor

xf- commented Dec 10, 2020

This happens only in the development context in current alpha of docusaurus. I don't try to search, i only moving or hovering with the mouse over the field throws the error.

Version of docusaurus

2.0.0-alpha.69

Version of docusaurus-lunr-search

2.1.9

Error

Unhandled Rejection (TypeError): can't access property "forEach", serialised is undefined

Full Exception
image

Compiled version
image

Workaround

before initAlgolia(searchDocs, searchIndex, DocSearch); because empty array & object is causing the issues.

          if(searchDocs.length === 0) {
              return;
          }

(I know an issue exists, but it has no context or information or response)

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

No branches or pull requests

1 participant