Title: Raven.js does not get stack frames from an Electron applications that uses "require" in the renderer process · Issue #812 · getsentry/sentry-javascript · GitHub
Open Graph Title: Raven.js does not get stack frames from an Electron applications that uses "require" in the renderer process · Issue #812 · getsentry/sentry-javascript
X Title: Raven.js does not get stack frames from an Electron applications that uses "require" in the renderer process · Issue #812 · getsentry/sentry-javascript
Description: Electron is a popular application framework from GitHub that allows you to create desktop applications with JavaScript. It's great and easy. Unfortunately, Raven.js is bugged with Electron applications. When an error occurs in an include...
Open Graph Description: Electron is a popular application framework from GitHub that allows you to create desktop applications with JavaScript. It's great and easy. Unfortunately, Raven.js is bugged with Electron applicat...
X Description: Electron is a popular application framework from GitHub that allows you to create desktop applications with JavaScript. It's great and easy. Unfortunately, Raven.js is bugged with Electron appl...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/812
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Raven.js does not get stack frames from an Electron applications that uses \"require\" in the renderer process","articleBody":"[Electron](https://electron.atom.io/) is a popular application framework from GitHub that allows you to create desktop applications with JavaScript. It's great and easy.\r\n\r\nUnfortunately, Raven.js is bugged with Electron applications. When an error occurs in an included JavaScript file using `require`, the stack frame is not reported to Sentry, so you can't actually see the line number of where the error occurred.\r\n\r\nI've created an extremely minimal example repository (with documentation) that illustrates the problem:\r\nhttps://github.com/Zamiell/electron-test/\r\n\r\n**Versions:**\r\n\r\nRaven.js: 3.9.1\r\nChromium: 53.0.2785.143\r\nOS: Windows 7 Professional\r\nNode: 6.5.0\r\nElectron: 1.4.13\r\n\r\nAltogether this is a deal-breaking bug, as Sentry is pretty useless for my use case without actual line number reporting. =(\r\n\r\n**Additional discussion about the problem:**\r\n\r\nElectron applications are unique in that Chromium (the browser) gets access to some of the Node APIs. So you can do things that you wouldn't normally be able to do in a browser. Like, for example, loading some functions from a separate file called `extra-functions.js`:\r\n\r\n```\r\nconst extraFunctions = require('./extra-functions');\r\nextraFunctions.doAThing();\r\n```\r\n\r\nIn my application, I've utilized this technique in order to split up code from one big file into lots of little files (for organizational purposes).\r\n\r\nHowever, since doing `require` in a browser is unconventional, I suspect it is messing up Raven.js interactions with the stack frame.","author":{"url":"https://github.com/Zamiell","@type":"Person","name":"Zamiell"},"datePublished":"2017-01-03T18:07:09Z","url":"https://github.com/getsentry/sentry-javascript/issues/812"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bf1c3bde-314a-1bef-df31-092167bd4157 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8554:1F1B5:F39D11:154A9C0:6B0446D9 |
| html-safe-nonce | dbb4327cf57b44ee4e1ccbcca9ae73f3647c4d809ab42fa5c919c4e7b0c2a665 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTU0OjFGMUI1OkYzOUQxMToxNTRBOUMwOjZCMDQ0NkQ5IiwidmlzaXRvcl9pZCI6IjU3Nzk2NDI2MTE5MDAxMDY0NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 587f24b49daa77769cf72be58444e893ae9402b7b37f6bd323b08d3c27a91cf4 |
| hovercard-subject-tag | issue:198533438 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/812/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b73cd4ed6268a9d7379d34a265312ab2f506c780f08dd0a6cf7cfe70ed9e0b04/getsentry/sentry-javascript/issues/812 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b73cd4ed6268a9d7379d34a265312ab2f506c780f08dd0a6cf7cfe70ed9e0b04/getsentry/sentry-javascript/issues/812 |
| og:image:alt | Electron is a popular application framework from GitHub that allows you to create desktop applications with JavaScript. It's great and easy. Unfortunately, Raven.js is bugged with Electron applicat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Zamiell |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width