Title: Node Local Variables does not seem to work with ESM · Issue #7046 · getsentry/sentry-javascript · GitHub
Open Graph Title: Node Local Variables does not seem to work with ESM · Issue #7046 · getsentry/sentry-javascript
X Title: Node Local Variables does not seem to work with ESM · Issue #7046 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/7046
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Node Local Variables does not seem to work with ESM","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which package are you using?\r\n\r\n@sentry/node\r\n\r\n### SDK Version\r\n\r\n7.32.0\r\n\r\n### Framework Version\r\n\r\n_No response_\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n```ts\r\nimport * as Sentry from '@sentry/node';\r\n\r\nSentry.init({\r\n debug: true,\r\n beforeSend: (event) => {\r\n console.log(event.exception.values[0].stacktrace.frames[7]);\r\n return null;\r\n },\r\n dsn: \"https://00000000000000000000000000000000@o000000.ingest.sentry.io/0000000\",\r\n includeLocalVariables: true,\r\n});\r\n\r\nclass Some {\r\n two(name) {\r\n throw new Error(\"Error with local variables\");\r\n }\r\n}\r\n\r\nfunction one(name) {\r\n const arr = [1, \"2\", null];\r\n const obj = {\r\n name,\r\n num: 5,\r\n };\r\n\r\n const ty = new Some();\r\n\r\n ty.two(name);\r\n}\r\n\r\none(\"some name\");\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\nhttps://discord.com/channels/621778831602221064/621786575591702529/1070801390223503502\r\n\r\nRaised by @lbogdan (thanks!)\r\n\r\nhttps://codesandbox.io/p/sandbox/node-sentry-local-variables-test-hg6zgb?file=%2Findex.js&selection=%5B%7B%22endColumn%22%3A18%2C%22endLineNumber%22%3A31%2C%22startColumn%22%3A1%2C%22startLineNumber%22%3A1%7D%5D\r\n\r\n### Expected Result\r\n\r\nIt works\r\n\r\n### Actual Result\r\n\r\nESM seems to be working with the inspector module differently.","author":{"url":"https://github.com/AbhiPrasad","@type":"Person","name":"AbhiPrasad"},"datePublished":"2023-02-02T21:20:59Z","url":"https://github.com/getsentry/sentry-javascript/issues/7046"}
| 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:3f5c8f00-09f6-f459-f4a4-a22e38b57d18 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E194:FE488:86336:AD909:6B04E85E |
| html-safe-nonce | 99f8eefe541d081823aa0c48094a29c1d2e34049eb37a9ab78e4ea2e1c5b3b30 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTk0OkZFNDg4Ojg2MzM2OkFEOTA5OjZCMDRFODVFIiwidmlzaXRvcl9pZCI6IjgwNDg1NTkwMjk5MDExMjU3MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e195c05f95ffa1529a03b09983778a25c1c5f6336eca2ac44043954f1a5c28c7 |
| hovercard-subject-tag | issue:1568797907 |
| 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/7046/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da98b723b0801170a493eeec28bf94377c77d98ba1ea450433c43b39aa04f094/getsentry/sentry-javascript/issues/7046 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da98b723b0801170a493eeec28bf94377c77d98ba1ea450433c43b39aa04f094/getsentry/sentry-javascript/issues/7046 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbhiPrasad |
| hostname | github.com |
| expected-hostname | github.com |
| None | f3851aad500d8e8dce736722ddc6fa9596e17d9fce3c53581eba968664c0bc32 |
| 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 | e29c922455fd8137f27e1cfcdf6a1e8b920b1926 |
| 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