Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Unknown argument error when executing CLI with pages glob

オープン
#48 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
node.js, typescript
領域
cli, documentation

調査の方向性

component-docs serve CLI エントリポイントから始め、関連する README と component-docs.config.js の参照を確認してください。npx component-docs serve "example/**/*.md" で問題を再現してください。glob の動作が修正されるか、README で必要な設定が明確に説明されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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"
主要言語
TypeScript
スター
141
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstack/component-docs のほかの issue

callstack/component-docs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。