-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
On a fresh checkout of the main branch at 7ffa9f7, after a successful yarn including yarn build, yarn start ends with:
$ yarn workspace website start
$ docusaurus start
[INFO] Starting the development server...
[ERROR] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:372:5)
at validateString (node:internal/validators:120:11)
at Object.join (node:path:1172:7)
at getPluginI18nPath (/Users/josh/repos/docusaurus/packages/docusaurus-utils/lib/i18nUtils.js:41:27)
at getDocsDirPathLocalized (/Users/josh/repos/docusaurus/packages/docusaurus-plugin-content-docs/lib/versions.js:80:42)
at getVersionMetadataPaths (/Users/josh/repos/docusaurus/packages/docusaurus-plugin-content-docs/lib/versions.js:94:34)
at createVersionMetadata (/Users/josh/repos/docusaurus/packages/docusaurus-plugin-content-docs/lib/versions.js:187:68)
at /Users/josh/repos/docusaurus/packages/docusaurus-plugin-content-docs/lib/versions.js:312:64
at Array.map (<anonymous>)
at readVersionsMetadata (/Users/josh/repos/docusaurus/packages/docusaurus-plugin-content-docs/lib/versions.js:312:43)
[INFO] Docusaurus version: 3.0.0-alpha.0
Node version: v16.16.0
This happens on Node version v18.7.0 as well.
Reproducible demo
Steps to reproduce
git clone https://github.com/facebook/docusaurus
cd docusaurus
yarn
yarn start
Expected behavior
I wanted to develop on Docusaurus normally 😢
Actual behavior
no develop, only crash
Your environment
- Public source code: https://github.com/facebook/docusaurus
- Public site URL: https://docusaurus.io
- Docusaurus version used: 3.0.0-alpha.0, apparently?
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Node.js 16.16 and 18.7
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): macOS Monterey 12.5 on a Macbook Air M2
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