-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its execution
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
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.
- Create a new docusaurus site:
npx create-docusaurus@latest my-website classic - Go to
my-websiteand run:npm run build -- --out-dir "build/product/6.0/"
Expected behavior
The site builds correctly at the directory build/product/6.0/, relative to the docusaurus project.
Actual behavior
The results:
$ npm run build -- --out-dir "build/product/6.0/"
> [email protected] build
> docusaurus build --out-dir build/product/6.0/
[INFO] [en] Creating an optimized production build...
✔ Client
● Server █████████████████████████ sealing (92%) asset processing
RealContentHashPlugin
[ERROR] Error: EISDIR: illegal operation on a directory, open 'C:\temp\my-website\build\product\6.0'
[ERROR] Unable to build website for locale en.
[ERROR] Error: EISDIR: illegal operation on a directory, open 'C:\temp\my-website\build\product\6.0'
[INFO] Docusaurus version: 2.1.0
Node version: v18.9.0
The build output is partially successful, but is missing the docs and img directories:
Your environment
- Public source code:
- Public site URL:
- Docusaurus version used: 2.1.0
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Node .js 18.9.0
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Windows 10
Self-service
- I'd be willing to fix this bug myself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its execution
