extension icon indicating copy to clipboard operation
extension copied to clipboard

Add source map support

Open zone117x opened this issue 3 years ago • 4 comments

Errors are difficult to debug when given a stack trace because there's no source map support.

Here's an example stack trace where source map support would have made it much easier to debug an issue:

image

zone117x avatar Dec 15 '21 17:12 zone117x

+1, this will also help for Sentry errors. I am hoping to add this to our cue on Q1

andresgalante avatar Dec 15 '21 20:12 andresgalante

Yep, indeed. I have a PR that never got merged https://github.com/hirosystems/stacks-wallet-web/pull/1876

Sourcemaps are a little trickier for extensions, as Sentry can't just go and fetch them. We need to upload them on release.

kyranjamie avatar Dec 16 '21 09:12 kyranjamie

This issue has come up again. QA is running into errors that are potentially blocking/delaying another API release because the there's no (useful) error logging or source maps: image

index.js:150788 TypeError: Network request failed
    at XMLHttpRequest.xhr.onerror (index.js:83310:16)
onError @ index.js:150788

zone117x avatar Jan 31 '22 17:01 zone117x

Thanks Matt for bringing it up. This one is in the radar for @He1DAr as he improves our Sentry implementation

andresgalante avatar Feb 01 '22 00:02 andresgalante