TypeError: null: type 'JSNull' is not a subtype of type 'String'

Đang mở
#2,852 3 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 3 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
38/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
dart
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi từ URL được báo cáo và kiểm tra stack trace trong dwds/src/injected/client.js, đặc biệt là _asString và main__closure7. Truy tìm sự kiện nào cung cấp null trong khi một String được mong đợi, sau đó xác minh rằng cùng tương tác đó không còn tạo ra TypeError.

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

Mô tả

P2 package:dwds triaged type-bug

TypeError: null: type 'JSNull' is not a subtype of type 'String'

at Object.wrapException (http://localhost:63795/dwds/src/injected/client.js:1249:43)
at Object._asString (http://localhost:63795/dwds/src/injected/client.js:2840:15)
at main__closure7.call$1 (http://localhost:63795/dwds/src/injected/client.js:26677:54)
at _EventStreamSubscription_closure.call$1 (http://localhost:63795/dwds/src/injected/client.js:26040:26)
at StaticClosure._rootRunUnary (http://localhost:63795/dwds/src/injected/client.js:4382:16)
at _CustomZone.runUnary$2$2 (http://localhost:63795/dwds/src/injected/client.js:14273:39)
at _CustomZone.runUnaryGuarded$1$2 (http://localhost:63795/dwds/src/injected/client.js:14220:14)
at _CustomZone_bindUnaryCallbackGuarded_closure.call$1 (http://localhost:63795/dwds/src/injected/client.js:14407:25)
at _callDartFunctionFast1 (http://localhost:63795/dwds/src/injected/client.js:7680:25)
at http://localhost:63795/dwds/src/injected/client.js:7656:18
Ngôn ngữ chính
Dart
Star
224
Fork
95
Merge trung bình
3 ngày 17 giờ
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 dart-lang/webdev

Tất cả issue của dart-lang/webdev

Issue tương tự

Thêm issue về Dart

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.