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

Allow preview versions of Next

Đang mở Phù hợp với người mới
#206 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
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
next.js, typescript
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu tại packages/web/package.json, xung quanh mục peer dependency được liên kết, sau đó tái hiện quá trình cài đặt npm bằng [email protected]. Hoàn tất khi phiên bản preview được cài đặt mà không yêu cầu --force, đồng thời giữ nguyên các kiểm tra dependency hiện có của package.

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

Mô tả

Thought I would try the preview version of Next (16.3.0-preview.9 to be specific), and seems it works great, with the exception that I'm getting this error on the build-server:

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @vercel/[email protected]
npm error Found: [email protected]
npm error node_modules/next
npm error   next@"16.3.0-preview.9" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional next@">= 13" from @vercel/[email protected]
npm error node_modules/@vercel/analytics
npm error   @vercel/analytics@"2.0.1" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/next
npm error   peerOptional next@">= 13" from @vercel/[email protected]
npm error   node_modules/@vercel/analytics
npm error     @vercel/analytics@"2.0.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\torle\AppData\Local\npm-cache\_logs\2026-07-24T23_02_48_171Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\torle\AppData\Local\npm-cache\_logs\2026-07-24T23_02_48_171Z-debug-0.log

Would be great if [the peer dependency](https://github.com/vercel/analytics/blob/d5df714080cbfdc7ee5e84b9aa6918e291a8e979/packages/web/package.json#L127], which is now "next": ">= 13" could be widened to also include preview versions.

I can work around it by overriding the install command on Vercel to npm i --force, but would prefer if I didn't have to do that.

Ngôn ngữ chính
TypeScript
Star
518
Fork
55
Merge trung bình
19 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 vercel/analytics

Tất cả issue của vercel/analytics

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.