Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Unknown argument error when executing CLI with pages glob

Open
#48 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js, typescript
Domain
cli, documentation

Research direction

Start with the component-docs serve CLI entry point and inspect the related README and component-docs.config.js references. Reproduce the issue with npx component-docs serve "example/**/*.md"; done means the glob behavior is corrected or the README clearly explains the required configuration.

Written by the indexing model from the issue text.

Description

Environment

  • MacOS 10.15.7
  • zsh shell
  • Node.js 12.18.4
  • yarn 1.22.5

Description

When I worked on this PR, and upgraded component-docs to then-latest version 0.23.0, I notice that the npm script component-docs serve "docs/*.{md,mdx}" now return this error:

$ component-docs serve "docs/*.{md,mdx}"
...
Unknown argument: docs/*.{md,mdx}

Event after recent update to 0.24.0, the issue still persists, so I have to resort to component-docs.config.js to define the pages collection.

If pages glob argument is no longer supported in recent update, I think it should be reflected in README to avoid confusion.

Reproducible Demo

Just run below command and observe the error:

npx component-docs serve "example/**/*.md"
Dominant language
TypeScript
Stars
141
Forks
12
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from callstack/component-docs

All issues in callstack/component-docs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.