GoogleCloudPlatform / GoogleCloudPlatform/stackdriver-errors-js

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

未关闭
#63 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
360
派生
54
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。