elements-react pins @ory/client-fetch to an exact version, forcing duplicate installs
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 70/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react, typescript
- Lĩnh vực
- build-system, tooling
Hướng nghiên cứu
Xem tệp package.json trong gói @ory/elements-react để xem khai báo phụ thuộc hiện tại cho @ory/client-fetch. Kiểm tra cách các gói khác trong kho lưu trữ xử lý phạm vi phiên bản hoặc phụ thuộc peer. Bản sửa lỗi liên quan đến việc cập nhật bộ chỉ định phiên bản phụ thuộc, có thể trong package.json, và xác minh rằng quá trình xây dựng và kiểm tra vẫn vượt qua sau thay đổi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
@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.
- Ngôn ngữ chính
- TypeScript
- Star
- 187
- Fork
- 80
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ory/elements
-
good first issue help wanted upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
good first issue help wanted upstream
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
-
Add React-only examplesĐang mởNeeds Triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
-
guessPotentiallyProxiedOrySdkUrl breaks flows in production behind a non-Vercel reverse proxyĐang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Needs Triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
supabase/agent-skills#611 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
polka-codes/test#345 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
GoogleChromeLabs/project-sesame#217 ·
Maintainer thường phản hồi trong vòng 12 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
solana-foundation/solana-com#2202 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100