GoogleCloudPlatform / GoogleCloudPlatform/stackdriver-errors-js

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

Ouverte
#63 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
360
Forks
54
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.