typesense / typesense/docusaurus-theme-search-typesense
DocsPreferredVersionContextProvider error when launching page.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 84
- Forks
- 24
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Description
Docusaurus site versions 2.0.0-beta.16 and 2.0.0-beta.15 do not work with the typesense search plugin. Starting page after configuring the website results in the following error .
This page crashed.
Can't find docs preferred context, maybe you forgot to use the "DocsPreferredVersionContextProvider"?
Steps to reproduce
After creating a new docusaurus site using the command on their getting started page:
npx create-docusaurus@latest my-website classic
Adding "docusaurus-theme-search-typesense": "^0.3.0", to the dependencies section in the package.json file
Installing the plugin using
npm install --legacy-peer-deps
and configuring my config.js file I launch my website using npm run start and see the following error
This page crashed.
Can't find docs preferred context, maybe you forgot to use the "DocsPreferredVersionContextProvider"?
Expected Behavior
Website should load and search bar should be present.
Actual Behavior
Website crashes
Metadata
Typsense Version: docusaurus-theme-search-typesense": "^0.3.0"
OS: Windows and Mac
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the crash with a fresh Docusaurus site, the package.json dependency, the configured config.js, and npm run start. Trace the plugin integration around the DocsPreferredVersionContextProvider error; done means the site loads successfully and the search bar is present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100