Closed fartbagxp closed 1 month ago
Sorry about this, it's my fault while refactoring code in https://github.com/facebook/docusaurus/pull/10316
Although this API is not documented, it's not exported as /internal
and so this change can be considered as a breaking change.
I will look into adding back retrocompatibility soon, so that this plugin works again.
Docusaurus v3.5.2 has been released, fixing this retro-compatibility problem.
Note, it's possible that you get another error while building your site.
[ERROR] Error: Unable to build website for locale en.
...
[cause]: TypeError: Cannot read properties of undefined (reading 'load')
at getDocusaurusTag (.../@cmfcmf/docusaurus-search-local/lib/server/parse.js:194:33)
at .../@cmfcmf/docusaurus-search-local/lib/server/index.js:288:60
It is a different issue, related to a recent release of Cheerio v1.0 that did unexpected breaking changes. See my PR for details and workarounds: https://github.com/cmfcmf/docusaurus-search-local/pull/218
Thanks @slorber!
Please describe the bug you are seeing
As of v3.5.0 docusaurus release, there's some internal refactoring going so having this search plugin breaks on compiling on every file, it probably has to do with
useContextualSearchFilters
.How can we best reproduce the bug?
Build project with Docusaurus v3.5.0, use either v1.1.0 or v1.2.0 of the plugin and run
docusaurus build
.Which version of Docusaurus and @cmfcmf/docusaurus-search-local are you using?
v1.1.0 and v1.2.0 both fail.
Which Node.js version are you using?
v20.16.0
Which theme are you using?
Yes, I am using @docusaurus/theme-classic
How does your plugin config look like?
Additional context
No response