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:

Screenshot 2022-06-09 at 11 56 46

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

Most upvoted comments

@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:

image