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
Build errors when --out-dir
includes dot in path segment
#8135
Comments
This is tricky... This error seems to be directly thrown from |
Thanks for investigating! |
curious to know what led you to this conclusion? any stacktrace to share? Surprisingly the |
Ah, the debugging trick is called "inserting The error is thrown from here: docusaurus/packages/docusaurus/src/webpack/utils.ts Lines 243 to 249 in c6f5cf9
Note that server.bundle.js exists, so it must occur somewhere late in SSG phase. |
Can't beat |
😅 can't figure where this come from. Hopefully it shouldn't block you: the workaround is just to rename the folder after a build and it should work? |
It's not a blocker (sorry, I should have mentioned that). I have a workaround to test the build. |
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
When calling
npm run build -- --out-dir
, if the directory contains a path segment with a dot.
, the build fails with errors.For example, the directory
build/product/6.0/
causes errors.Reproducible demo
No response
Steps to reproduce
Tested using git bash on Windows 10.
my-website
and run:Expected behavior
The site builds correctly at the directory
build/product/6.0/
, relative to the docusaurus project.Actual behavior
The results:
The build output is partially successful, but is missing the
docs
andimg
directories:Your environment
Self-service
The text was updated successfully, but these errors were encountered: