GoogleCloudPlatform / GoogleCloudPlatform/stackdriver-errors-js

Cannot set property onunhandledrejection of [object Object] which has only a getter

Đang mở
#63 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
360
Fork
54
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

This may have birthed from [Issue#35](https://github.com/GoogleCloudPlatform/stackdriver-errors-js/issues/35).

I'm seeing logs with the following error:
```
TypeError: Cannot set property onunhandledrejection of [object Object] which has only a getter
at onunhandledrejection (../node_modules/stackdriver-errors-js/stackdriver-errors.js:91:0)
at window.addEventListener (index.js:133:15)
```

This is happening on my starting the ErrorReporter. index.js:133 is line 3:
```
window.addEventListener('DOMContentLoaded', function () {
var errorHandler = new StackdriverErrorReporter();
errorHandler.start({
targetUrl: '',
});
})
```

**User Agent**: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

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

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

Đánh giá

Issue này chưa được đánh giá.

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.