-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
npm run build fails when nmetadata are missing #10069
Comments
Indeed this is caused by the two options, I'm not sure if we changed the internal behavior in version 3.2.1
I'm not sure to understand correctly what you mean by Docusaurus is installed in ARTOPS_DOKU and then a git repo is cloned to ARTOPS_DOKU/docu/Doku Meanwhile you can disable the two options |
Hi, I installed Docusaurus there:
Later I cloned my documentation repo into a subfolder:
|
These options require Git indeed. If you don't use Git you should turn them off. If you use Git, double-check your setup. We run Also closing because we need a repro to troubleshoot problems, and no repro was provided |
we are getting this error when using
|
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
Hi, I have a git repository as source for my webpage. with docusaurus 3.1 I get a warning:
[WARNING] Error: Failed to retrieve the git history for file "/opt/ARTOPS_DOKU/docs/tutorial-extras/translate-your-site.md" with exit code 128: fatal: not a git repository (or any parent up to mount point /opt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Now I updates to 3.2.1 and the build os now aborting:
[INFO] [en] Creating an optimized production build...
[ERROR] Loading of version failed for version current
[ERROR] Error: Unable to build website for locale en.
at tryToBuildLocale (/opt/ARTOPS_DOKU/node_modules/@docusaurus/core/lib/commands/build.js:53:19)
at async /opt/ARTOPS_DOKU/node_modules/@docusaurus/core/lib/commands/build.js:64:9
at async mapAsyncSequential (/opt/ARTOPS_DOKU/node_modules/@docusaurus/utils/lib/jsUtils.js:20:24)
at async Command.build (/opt/ARTOPS_DOKU/node_modules/@docusaurus/core/lib/commands/build.js:62:5) {
...
[cause]: Error: Failed to retrieve the git history for file "/opt/ARTOPS_DOKU/docs/tutorial-extras/translate-your-site.md" with exit code 128: Schwerwiegend: Kein Git-Repository (oder irgendeines der Elternverzeichnisse): .git
...
What can I do to enable the build again? I think problem is caused by the following parameters:
Reproducible demo
No response
Steps to reproduce
Docusaurus is installed under /opt/ARTOPS_DOKU. A git Repo is cloned to /opt/ARTOPS_DOKU/docu/Doku. In /opt/ARTOPS_DOKU/docu the efault files from docusaurus are located.
When running npm run build docusaurus 3.2.1 is aborting.
Expected behavior
Behaviour from all version up to 3.1.1:
All files are searched for last modified user and last modified time. Then the webpages are created. If a file has not git information, a warning is reported, but the webpage is build.
Actual behavior
New behaviour since 3.2.1:
All files are searched for last modified user and last modified time. But the webpages are created, If a file has not git information, because a warning is reported and the buold is aborted.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: