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

elements-react pins @ory/client-fetch to an exact version, forcing duplicate installs

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

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

評価

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

調査の方向性

@ory/elements-react パッケージ内の package.json ファイルを確認し、@ory/client-fetch の現在の依存関係宣言を確認してください。リポジトリ内の他のパッケージがバージョン範囲やピア依存関係をどのように扱っているかを確認します。修正には、依存関係のバージョン指定子(おそらく package.json 内)を更新し、変更後もビルドとテストが成功することを確認することが含まれます。

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

説明

Needs Triage

@ory/elements-react declares "@ory/client-fetch": "1.22.22" in 1.2.1 (1.22.65 on master, not yet released).

Apps that also depend on @ory/client-fetch directly (to call Kratos outside Elements) end up with two copies whenever they update it, and TypeScript then rejects passing a LoginFlow/SettingsFlow fetched with one copy into <Login>/<Settings> from the other:

error TS2322: Type 'import(".../@[email protected]/.../models/LoginFlow").LoginFlow' is not assignable to type 'import(".../@[email protected]/.../models/LoginFlow").LoginFlow'.

Could the dependency be a caret range (^1.22.0) or a peerDependency, so a single copy can be shared? Alternatively, a release cadence that tracks @ory/client-fetch would shrink the window. For now we pin our direct dependency to whatever elements-react pins and exclude it from Dependabot.

主要言語
TypeScript
スター
187
フォーク
80
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

ory/elements のほかの issue

ory/elements の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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