-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata robots
noindex
causes build error
#7772
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Comments
chernodub
added
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
Jul 13, 2022
chernodub
added a commit
to chernodub/docusaurus
that referenced
this issue
Jul 13, 2022
Currently, the recommended approach is [not working](facebook#7772). By using an alternative, working, approach, we prevent people from facing issues.
3 tasks
Josh-Cena
removed
the
status: needs triage
This issue has not been triaged by maintainers
label
Jul 14, 2022
3 tasks
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: