server: check-config names the pivotkit-element version and --global for the viewer page

Đang mở Phù hợp với người mới
#1,060 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
85/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ệ
javascript, node.js
Lĩnh vực
cli, documentation, testing

Hướng nghiên cứu

Đọc packages/pivotkit-server/src/check/browser.js quanh dòng 175, optional peer dependency trong metadata của gói server và bước 3 của viewer trong docs/reference/records.md. Kiểm tra cách viewer/assets.js xác thực phiên bản đã cài đặt và tìm các bài kiểm tra cấu hình check hiện có. Cập nhật cảnh báo để sử dụng phạm vi của peer dependency, đề cập đến --global và liên kết đến tài liệu tham khảo; thêm một bài kiểm tra xác minh phạm vi khớp với peer dependency.

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

Mô tả

area:server enhancement

When the viewer page is on and pivotkit-element is missing, check-config warns:

the viewer page needs pivotkit-element installed next to pivotkit-server (npm install pivotkit-element): until then it answers 503

(packages/pivotkit-server/src/check/browser.js:175)

The command it names is not the one the docs give (docs/reference/records.md, viewer step 3: npm install pivotkit-element@<version>, with --global for a global install):

  • It has no version. pivotkit-element must be in the range pivotkit-server names as an optional peer dependency. A plain npm install pivotkit-element installs the newest release, which can be outside that range on an older server. The page then refuses it (viewer/assets.js:54).
  • It does not say --global. pivotkit-server is often installed globally. A local install in the current folder is then not "next to pivotkit-server", and the warning stays.

Proposal: the warning names the range from the peer dependency (npm install pivotkit-element@"<range>"), adds "with --global when pivotkit-server is installed globally", and links the viewer section of the records reference. A test checks the text against the peer dependency, so the range cannot drift.

Ngôn ngữ chính
JavaScript
Star
1
Fork
1
Merge trung bình
3 giờ 57 phút
Pull request đã merge (30 ngày)
453

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 eizedev/pivotkit

Tất cả issue của eizedev/pivotkit

Issue tương tự

Thêm issue về JavaScript

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.