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

3.6.0 docusarus release breaks the search #55

Open
Celtech opened this issue Nov 4, 2024 · 1 comment
Open

3.6.0 docusarus release breaks the search #55

Celtech opened this issue Nov 4, 2024 · 1 comment

Comments

@Celtech
Copy link

Celtech commented Nov 4, 2024

Description

If you compile a docusarus site on 3.6.0 you get the following error:

Hook useDocsPreferredVersionContext is called outside the <DocsPreferredVersionContextProvider>. 
ReactContextError
    at useDocsPreferredVersionContext (webpack-internal:///./node_modules/docusaurus-theme-search-typesense/node_modules/@docusaurus/plugin-content-docs/lib/client/docsPreferredVersion.js:35:329)
    at useDocsPreferredVersionByPluginId (webpack-internal:///./node_modules/docusaurus-theme-search-typesense/node_modules/@docusaurus/plugin-content-docs/lib/client/docsPreferredVersion.js:41:794)
    at Module.useDocsContextualSearchTags (webpack-internal:///./node_modules/docusaurus-theme-search-typesense/node_modules/@docusaurus/plugin-content-docs/lib/client/docsSearch.js:22:404)
    at useContextualSearchFilters (webpack-internal:///./node_modules/docusaurus-theme-search-typesense/node_modules/@docusaurus/theme-common/lib/index.js:91:167)
    at useTypesenseContextualFilters (webpack-internal:///./node_modules/docusaurus-theme-search-typesense/lib/client/useTypesenseContextualFacetFilters.js:12:145)
    at DocSearch (webpack-internal:///./node_modules/docusaurus-theme-search-typesense/lib/theme/SearchBar/index.js:33:1058)
    at renderWithHooks (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:15487:18)
    at mountIndeterminateComponent (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:20099:13)
    at beginWork (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:21622:16)
    at HTMLUnknownElement.callCallback (webpack-internal:///./node_modules/react-dom/cjs/react-dom.development.js:4165:14)

Steps to reproduce

  1. upgrade docusarus site with typesense search to 3.6.0
  2. yarn start
  3. see the error

Expected Behavior

Actual Behavior

Metadata

Typesense Version: 0.22.0

OS: macOS

@jasonbosco
Copy link
Member

@Celtech The fix for this is in v0.23.0-0. Could you give it a shot and let me know how it goes?

CC: @tharropoulos

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

2 participants