If the searched result is too many in the Search Bar, when we click show more results while indexing it, the page crashes. For example, when a call is made on the page that contains only the letter "a", we get a maximum call stack size exceeded error. How to fix this error?
Error:
Console:
How can we best reproduce the bug?
No response
Which version of Docusaurus and @cmfcmf/docusaurus-search-local are you using?
Please describe the bug you are seeing
If the searched result is too many in the Search Bar, when we click show more results while indexing it, the page crashes. For example, when a call is made on the page that contains only the letter "a", we get a maximum call stack size exceeded error. How to fix this error?
Error:
Console:
How can we best reproduce the bug?
No response
Which version of Docusaurus and @cmfcmf/docusaurus-search-local are you using?
"@cmfcmf/docusaurus-search-local": "^0.11.0"
Which Node.js version are you using?
v16.16.0
Which theme are you using?
Yes, I am using @docusaurus/theme-classic
How does your plugin config look like?
`plugins: [ [ require.resolve("@cmfcmf/docusaurus-search-local"), { // Options here indexDocs: true, }, ], ],
themes: [ [ "@easyops-cn/docusaurus-search-local", { hashed: true, highlightSearchTermsOnTargetPage: true, explicitSearchResultPath: true, }, ], ],`
Additional context
No response