NativeScript / NativeScript/nativescript-cli

ERROR in node_modules/nativescript-drop-down/drop-down.d.ts

Đang mở
#5,203 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.

Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

Environment

  • CLI: 5.4.2
  • Cross-platform modules:
  • Android Runtime:
  • iOS Runtime:
  • Plugin(s): nativescript-angular

Describe the bug
When I install the plugin using Nativescript Angular, I get these errors on drop-down.d.ts file.


ERROR in node_modules/nativescript-drop-down/drop-down.d.ts(16,33): error TS2307: Cannot find module 'data/observable-array'.
node_modules/nativescript-drop-down/drop-down.d.ts(17,62): error TS2307: Cannot find module 'ui/core/view'.
node_modules/nativescript-drop-down/drop-down.d.ts(18,30): error TS2307: Cannot find module 'ui/gestures/gestures'.
node_modules/nativescript-drop-down/drop-down.d.ts(19,29): error TS2307: Cannot find module 'ui/list-picker'.
node_modules/nativescript-drop-down/drop-down.d.ts(20,31): error TS2307: Cannot find module 'ui/text-base'.

I fix them manually to make it work, adding the prefix tns-core-modules/ to each one of the paths.

I will be grateful if you update your plugin code to avoid to be fixing it manually 🙂

Kind regards,
Génesis Salazar

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Các khai báo bị lỗi nằm trong node_modules/nativescript-drop-down/drop-down.d.ts, với các import còn thiếu được liệt kê trong issue. Tái hiện vấn đề bằng cách cài đặt plugin với NativeScript Angular và biên dịch; hoàn thành khi các khai báo biên dịch được mà không cần chỉnh sửa thủ công và các lỗi TS2307 được báo cáo đã biến mất.

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

Đánh giá

Công nghệ
javascript, typescript
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
38/100

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.