I’m using raven-js
in the renderer process of an Electron app, and uploading the source maps via a sentry webpack plugin.
My compiled code is in bundle.js
, and the full path is dependent on the OS/user. for example:
<os specific path to app files>/resources/app.asar/dist/bundle.js
The last line of my bundle.js
reads:
// # sourceMappingURL=bundle.js.map
In my Sentry dashboard, the release has the following artifacts:
~/bundle.js
~/bundle.js.map
However, when an error throws, Sentry doesn’t seem to apply source maps (stack trace from sentry dashboard below)
I’ve made this work before in web applications using hosted source maps, so I thought I was configuring everything correctly, but clearly something’s amiss.
Any ideas what might be wrong?
/C:/Users/brand/AppData/Local/Programs/wayhome/resources/app.asar/dist/bundle.js in Object../app/routes.js at line 14023:125
/C:/Users/brand/AppData/Local/Programs/wayhome/resources/app.asar/dist/bundle.js in __webpack_require__ at line 21:30
/C:/Users/brand/AppData/Local/Programs/wayhome/resources/app.asar/dist/bundle.js in Object../app/containers/Root.js at line 9757:304
/C:/Users/brand/AppData/Local/Programs/wayhome/resources/app.asar/dist/bundle.js in __webpack_require__ at line 21:30
/C:/Users/brand/AppData/Local/Programs/wayhome/resources/app.asar/dist/bundle.js in Object../app/index.js at line 9777:509
/C:/Users/brand/AppData/Local/Programs/wayhome/resources/app.asar/dist/bundle.js in __webpack_require__ at line 21:30
/C:/Users/brand/AppData/Local/Programs/wayhome/resources/app.asar/dist/bundle.js in Object.22 at line 222740:18
/C:/Users/brand/AppData/Local/Programs/wayhome/resources/app.asar/dist/bundle.js in __webpack_require__ at line 21:30
/C:/Users/brand/AppData/Local/Programs/wayhome/resources/app.asar/dist/bundle.js in module.exports../app/app-relay-route.js.Object.defineProperty.value at line 64:18
/C:/Users/brand/AppData/Local/Programs/wayhome/resources/app.asar/dist/bundle.js at line 67:10