cmfcmf / docusaurus-search-local

Offline / Local Search for Docusaurus v2. Try it live at:
https://cmfcmf.github.io/OpenWeatherMap-PHP-API/
MIT License
437 stars 67 forks source link

Maximum call stack size exceeded #132

Open mbakin opened 2 years ago

mbakin commented 2 years ago

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:

Ekran Resmi 2022-08-11 12 55 05

Console:

Ekran Resmi 2022-08-11 12 55 28

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