docusaurus-search-local: Docusaurus Build fails when all @docusaurus/plugin-content-docs instances have custom ids
Hi,
when I tried to update to 0.27.0 my build failed because of the following error:
Error: Docusaurus plugin global data not found for "docusaurus-plugin-content-docs" plugin with id "default".
also in the dev server I get the following error:

In my project I’m using custom ids for all instances of @docusaurus/plugin-content-docs.
When I remove the custom plugin id for one instance everything works as expected. In my case it would be great if I could still continue to use custom ids for all my plugin instances.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 24 (14 by maintainers)
Commits related to this issue
- fix: use the active plugin id when getting the current docs version Fixes #211 — committed to Cyriuz/docusaurus-search-local by Cyriuz 2 years ago
- fix: fix website with docs multi-instance closes #211 — committed to easyops-cn/docusaurus-search-local by weareoutman 2 years ago
- fix: fix website with docs multi-instance closes #211 — committed to easyops-cn/docusaurus-search-local by weareoutman 2 years ago
@ivishalgandhi I think you should set
blogRouteBasePath: "/"according to your blog config@ivishalgandhi ok, I have just reproduced it. It happens when docs disabled. Will fix it later
Finally fixed in v0.29.2. However you should add a new option
docsPluginIdForPreferredVersion: