Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#605 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

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.

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ory/elements

Tất cả issue của ory/elements

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.