Title: SDK throws Exception if integration is undefined · Issue #7200 · getsentry/sentry-javascript · GitHub
Open Graph Title: SDK throws Exception if integration is undefined · Issue #7200 · getsentry/sentry-javascript
X Title: SDK throws Exception if integration is undefined · Issue #7200 · 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/7200
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SDK throws Exception if integration is undefined","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK setup.\n\n@sentry/angular\n\n### SDK Version\n\n7.37.1\n\n### Framework Version\n\nTested with Sentry Angular and Sentry React\n\n### Link to Sentry event\n\nThere's no error captured since it happened during the SDK Initialization\n\n### SDK Setup\n\n```\r\nSentry.init({\r\n dsn: 'https://4079af8b316240ea9453eb0a23b715cc@o447951.ingest.sentry.io/5522756',\r\n replaysOnErrorSampleRate: 1.0,\r\n integrations: [ \r\n new Replay({ stickySession: true, sessionSampleRate: 1.0, blockAllMedia: true }),,\r\n ],\r\n});\r\n```\n\n### Steps to Reproduce\n\nadd `,,` into the integration list\n\n### Expected Result\n\n- Sentry may not work but doesn't affect the website loading.\r\n\r\nIssue originally appeared by removing some integrations and I didn't notice there was an additional comma on the integration list and I was just wondering why the website wasn't loading.\n\n### Actual Result\n\nWebsite doesn't load, error shows on console:\r\n```\r\nbootstrap:27 \r\n \r\n Uncaught TypeError: Cannot destructure property 'name' of 'currentInstance' as it is undefined.\r\n at integration.ts:30:1\r\n at Array.forEach (\u003canonymous>)\r\n at filterDuplicates (integration.ts:29:1)\r\n at getIntegrationsToSetup (integration.ts:66:1)\r\n at Module.init (sdk.ts:123:1)\r\n at ./src/index.js (index.js:10:1)\r\n at options.factory (react refresh:6:1)\r\n at __webpack_require__ (bootstrap:24:1)\r\n at startup:7:1\r\n at startup:7:1\r\n```\r\nError seems to be throwing here: https://github.com/getsentry/sentry-javascript/blob/master/packages/core/src/integration.ts#L30","author":{"url":"https://github.com/lucas-zimerman","@type":"Person","name":"lucas-zimerman"},"datePublished":"2023-02-16T11:59:08Z","url":"https://github.com/getsentry/sentry-javascript/issues/7200"}
| 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:ad0155a3-22ad-690c-e74a-82ee9a07baa4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B154:A6239:5B5A75:7D25B8:6B04C7F5 |
| html-safe-nonce | 7f1f849198a86ef284894b3a718aed9547f49c57d9e304f62afe5889be653e66 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTU0OkE2MjM5OjVCNUE3NTo3RDI1Qjg6NkIwNEM3RjUiLCJ2aXNpdG9yX2lkIjoiNDk4MTg0NTQ0ODc1NjM0ODkxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 24276f3f2a21c9d7cec3052a4430a54a664a05e57a0885856f9f0e1ce4c3f19d |
| hovercard-subject-tag | issue:1587549079 |
| 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/7200/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a8dac3e54d37ae2702f9b24e33144b0c499e5d8fb1bccf8913f1bbaaaac5c3a/getsentry/sentry-javascript/issues/7200 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a8dac3e54d37ae2702f9b24e33144b0c499e5d8fb1bccf8913f1bbaaaac5c3a/getsentry/sentry-javascript/issues/7200 |
| 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 | lucas-zimerman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| 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