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

usabl init picks one entry file silently when several candidates exist

オープン 初心者向け
#317 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
cli, tooling

調査の方向性

src/init/index.ts の resolveEntryFile から始めて、usabl init が usabl.routes.json のドラフトをどのように作成するかを追ってください。ルートの検出と曖昧な候補に関する既存のテストがあれば確認してください。1つのルートに複数のサポート対象拡張子がある場合、ドラフトではエントリーファイルを空のままにし、すべての候補を示す Review: ノートを含める必要があります。

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

説明

area: setup bug

What happens

resolveEntryFile in src/init/index.ts looks for a route's component file by trying .tsx, .ts, .jsx, and .js in that order, and takes the first one that exists. When more than one exists for the same name, it picks one without saying so, and usabl init writes that file into the usabl.routes.json draft.

Why it matters

The routes sidecar is authoritative once it is committed. A wrong entry file maps changes to the wrong screen: a change to the real component may not queue its screen. This is the same "do not pick one silently" problem that import resolution had for .vue and .svelte siblings.

Expected

When more than one candidate exists, init leaves the entry file empty for that route and writes a Review: note that names every candidate.

Status

Found while building the parser-based router discovery. This is old behavior.

主要言語
TypeScript
スター
0
フォーク
0
平均マージ
1時間 22分
マージ済み PR(30日)
19

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

usabl-dev/usabl のほかの issue

usabl-dev/usabl の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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