GoogleCloudPlatform / GoogleCloudPlatform/stackdriver-errors-js

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

Aperta
#63 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
360
Fork
54
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.