usabl init picks one entry file silently when several candidates exist
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
src/init/index.ts の resolveEntryFile から始めて、usabl init が usabl.routes.json のドラフトをどのように作成するかを追ってください。ルートの検出と曖昧な候補に関する既存のテストがあれば確認してください。1つのルートに複数のサポート対象拡張子がある場合、ドラフトではエントリーファイルを空のままにし、すべての候補を示す Review: ノートを含める必要があります。
索引モデルが issue の本文から書いたものです。
説明
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 ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
usabl-dev/usabl のほかの issue
-
docsBaseUrl is not checked for credentials対応中かも @eparenti が今日担当しました。 オープンarea: setup bug security
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
area: playwright bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
area: engine bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
gate() does not check draft enums, so a misspelled evidence class never gates対応中かも @eparenti が 3 日前に担当しました。 オープンarea: engine bug security
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Overlay: browser context failures are counted per plugin, not per browser, and close is not sharedオープンarea: overlay bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
usabl-dev/usabl の issue をすべて見る
似ている issue
-
calcite-ui-icons enhancement impact - p3 - not time sensitive needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
Esri/calcite-design-system#15467 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
diegosouzapw/OmniRoute#18390 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
guilhermerodz/input-otp#157 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
davidjerleke/embla-carousel#1414 ·
メンテナーはふだん 4 日以内に返信