Investigate removing `legacy-peer-deps=true` from `web/.npmrc`

Đang mở
#142 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
nextjs, react, typescript
Lĩnh vực
build-system, frontend

Hướng nghiên cứu

The flag lives in web/.npmrc; the dependency set to check is in web/package.json and web/package-lock.json. Remove the line locally and run npm install to capture each peer-dependency conflict it reports. Done means npm ci, npm run lint and npm run build pass without the flag, or the PR explains each remaining conflict.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

difficulty: intermediate dx help wanted web

Difficulty: Intermediate

Problem

web/.npmrc sets legacy-peer-deps=true, which tells npm to ignore peer-dependency conflicts. It was probably added to get past an early install error, and it can hide real incompatibilities (for example between React 19, Next.js and the Sentry or Freighter packages).

Why it matters

Hidden peer conflicts show up later as confusing runtime or upgrade problems.

Scope of work

Remove the flag locally, run npm install, and record which conflicts appear. Fix them (version adjustments, overrides) or document precisely why the flag must stay.

Expected outcome

Either the flag is gone and installs are clean, or a comment explains each conflict that still requires it.

Acceptance criteria

  • npm ci, npm run lint and npm run build pass without the flag, or the PR documents why not.
  • Findings are recorded in the PR description.
  • CI is green.

Relevant files

  • web/.npmrc, web/package.json, web/package-lock.json

Dependencies

Related to #10 (dependency automation); PRs touching package.json may conflict.

Maintainer discussion needed?

No.

Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
54 phút
Pull request đã merge (30 ngày)
6

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 Yormee-103/PayLoop

Tất cả issue của Yormee-103/PayLoop

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.