TypeError [ERR_INVALID_ARG_TYPE] trying to 'yarn start' locally
Have you read the Contributing Guidelines on issues?
- [X] I have read the Contributing Guidelines on issues.
Prerequisites
- [X] I'm using the latest version of Docusaurus.
- [X] I have tried the
npm run clearoryarn clearcommand. - [X] I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - [X] I have tried creating a repro with https://new.docusaurus.io.
- [X] 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
https://github.com/facebook/docusaurus
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
- [X] I'd be willing to fix this bug myself.
Fun, last time I saw this was someone on Windows. Now we are getting it for mac??
I will like to take this up
Weird, I can't reproduce this myself. @Taofeek2438 can you?
No problem chief @Josh-Cena
Closing out my old issues for repos I no longer have context on. If anybody has a need for what this issue was asking about, I'd encourage them/you to file a new issue. Cheers!