You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Internal commands can be executed directly from my-app, for example: yarn docusaurus serve -p 8081 docs
Whats wrong?
I cannot execute external command docs:version directly from my-app
yarn docusaurus docs:version 1 --> ❌ Not working
yarn docusaurus docs:version 1 docs --> ❌ Not working
yarn docusaurus docs:version docs 1 --> ❌ Not working
yarn docusaurus docs:version 1 --config docs/docusaurus.config.js --> ❌ Not working
Reproducible demo
No response
Steps to reproduce
yarn install
yarn docusaurus docs:version 1
Expected behavior
[SUCCESS] [docs]: version 1 created!
Actual behavior
[ERROR] No config file found.
[INFO] Expected one of:
docusaurus.config.js
docusaurus.config.cjs
You can provide a custom config path with the --config option.
/my-app/node_modules/@docusaurus/core/lib/server/config.js:25
throw new Error();
^
Your environment
Docusaurus version used: 2.3.1
Environment name and version: Node v18
Operating system and version: MacOS Montery 12.3
Self-service
I'd be willing to fix this bug myself.
The text was updated successfully, but these errors were encountered:
Josh-Cena
added
closed: duplicate
This issue or pull request already exists in another issue or pull request
and removed
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
May 31, 2023
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 All,
All internal Docusaurus commands accept the
siteDir
parameter in addition to other options:That provides the possibility to execute internal commands from another directory. For example, considering the following project organization:
Internal commands can be executed directly from
my-app
, for example:yarn docusaurus serve -p 8081 docs
Whats wrong?
I cannot execute external command docs:version directly from
my-app
Reproducible demo
No response
Steps to reproduce
Expected behavior
[SUCCESS] [docs]: version 1 created!
Actual behavior
[ERROR] No config file found.
[INFO] Expected one of:
You can provide a custom config path with the
--config
option./my-app/node_modules/@docusaurus/core/lib/server/config.js:25
throw new Error();
^
Your environment
Self-service
The text was updated successfully, but these errors were encountered: