Closed spham closed 2 years ago
Just stumbled over the same error today, but I'm using a the canary build 0.0.0.4639 currently. Seems they changed the tag from <meta data-rh="true" name="docusaurus_tag"
to <meta data-rh="true" name="docsearch:docusaurus_tag"
just lately:
https://github.com/facebook/docusaurus/commit/a6f53aa9d2c2172fcc7bb017c8226614885f7972
Following code will need update:
Maybe the selector could be changed to meta[name*="docusaurus_tag"]
(contains) or meta[name=$="docusaurus_tag"]
(ends-with) to ensure compatibility with multiple versions?
Same here
[ERROR] Unable to build website for locale en.
[ERROR] Error: docusaurus_tag meta tag not found. This is a bug and should never happen.
Thank you everyone for reporting this issue. Docusaurus reverted the name of the metatag in https://github.com/facebook/docusaurus/pull/6827, which was released as part of v2.0.0-beta.17 and I'll also release a new version of this plugin that is tested with the latest Docusaurus beta today.
Please describe the bug you are seeing
[ERROR] Unable to build website for locale en. [ERROR] Error: docusaurus_tag meta tag not found. This is a bug and should never happen.
How can we best reproduce the bug?
add this follow
npm run build
Which version of Docusaurus and @cmfcmf/docusaurus-search-local are you using?
Which Node.js version are you using?
v16.3.0
Which theme are you using?
Yes, I am using @docusaurus/theme-classic
How does your plugin config look like?
Additional context
wsl on local or gitlab ci failed