Skip to content

TypeError [ERR_INVALID_ARG_TYPE] trying to 'yarn start' locally #8315

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Have you read the Contributing Guidelines on issues?

Prerequisites

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

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions