Metadata robots
noindex
causes build error
#7772
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Faced error when tried to build the application with
metadata: [{name: 'robots', content: 'noindex'}]
set indocusaurus.config.js
. This is a recommended way of hiding the website from search crawlers. I was also able to avoid the issue by using an alternative way of applyingnoindex
in metadata.Reproducible demo
https://github.com/chernodub/docusaurus-build-issue-repro
Steps to reproduce
With attached demo:
npm install
npm run build
With clean docusaurus build:
npx create-docusaurus@latest my-website classic
cd my-website
metadata: [{name: 'robots', content: 'noindex'}]
todocusaurus.config.js
npm run build
Expected behavior
npm run build
finishes without errorsActual behavior
npm run build
fails with an errorYour environment
2.0.0-beta.22
Node.js 16.6.0
macOS Monterey 12.4
Self-service
The text was updated successfully, but these errors were encountered: