Closed dannysofftie closed 3 years ago
The setup isn't clear, solved above by configuring docusaurus correctly
@dannysofftie Could you expand on which part of the setup instructions were unclear? Would love to address any confusion in the docs.
@dannysofftie have the same issue, would like to know how to go about "configuring docusaurus correctly"
@dtlhlbs Could you try upgrading to v2.0.0-beta.16 of Docusaurus and also v0.4.0-0 of docusaurus-theme-search-typesense?
@jasonbosco Turns out it was the re-compiling under webpack that didn't work. All I need to do was stop the dev server and yarn start
again and it was fine.
For others, after installing this package I made these changes to docusaurus.config.js
themes: ['docusaurus-theme-search-typesense'],
below 'projectName'themeConfig
added the typesense
property from the docs with the typesenseCollectionName
properties etc.
Description
Module not found: Error: Can't resolve '@theme/hooks/useSearchQuery' in './node_modules/docusaurus-theme-search-typesense/src/theme/SearchPage'
Steps to reproduce
yarn add docusaurus-theme-search-typesense
Expected Behavior
Show search bar in generated docs website
Actual Behavior
Metadata
Typsense Version: 0.21.0
OS: Ubuntu 20.04.3