Title: @sentry.vue throw error [Cannot read property 'Symbol(Symbol.iterator)' of undefined] · Issue #8870 · getsentry/sentry-javascript · GitHub
Open Graph Title: @sentry.vue throw error [Cannot read property 'Symbol(Symbol.iterator)' of undefined] · Issue #8870 · getsentry/sentry-javascript
X Title: @sentry.vue throw error [Cannot read property 'Symbol(Symbol.iterator)' of undefined] · Issue #8870 · 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/8870
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry.vue throw error [Cannot read property 'Symbol(Symbol.iterator)' of undefined]","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\nSelf-hosted/on-premise\r\n\r\n### Which SDK are you using?\r\n\r\n@sentry/vue\r\n\r\n### SDK Version\r\n\r\n7.64.0\r\n\r\n### Framework Version\r\n\r\nVue 2.7.14\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\nIf you use new `Sentry.BrowserTracing`, putting an array will throw an exception\r\n```js\r\nSentry.init({\r\n Vue,\r\n dsn: 'You DNS',\r\n integrations: [\r\n new Sentry.BrowserTracing({\r\n // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled\r\n // tracePropagationTargets: [],\r\n routingInstrumentation: Sentry.vueRouterInstrumentation(router)\r\n })\r\n],\r\n// Performance Monitoring\r\ntracesSampleRate: 0.1, // Capture 100% of the transactions, reduce in production!\r\n// Session Replay\r\nreplaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.\r\nreplaysOnErrorSampleRate: 0.1 // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.\r\n })\r\n```\r\n**No error is reported using the following method**\r\n```js\r\nSentry.init({\r\n Vue,\r\n dsn: 'You DNS',\r\n integrations: [],\r\n // Performance Monitoring\r\n tracesSampleRate: 0.1, // Capture 100% of the transactions, reduce in production!\r\n // Session Replay\r\n replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.\r\n replaysOnErrorSampleRate: 0.1 // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.\r\n})\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1.Initialize Sentry ,in integrations array is passed in new Sentry.BrowserTracing.\r\n\r\n2.An error is reported during initialization, with Cannot read property 'Symbol(Symbol.iterator)' of undefined.If integrations is passed in an empty array, no error will be reported.\r\n\r\n\r\n\r\n### Expected Result\r\n\r\nintegrations passed in new Sentry.BrowserTracing does not report an error.\r\n\r\n### Actual Result\r\n\r\n**The version of the browser that reported an error**\r\n**Operating system**:Windows7/Windows >=10\r\nUC Browser/6.2.4098\r\nChrome/55.0.2883\r\nChrome/55.0.2987\r\n\r\n\r\n\r\n\r\n**node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js**\r\n```js\r\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\r\nexport default function _createForOfIteratorHelper(o, allowArrayLike) {\r\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\r\n if (!it) {\r\n if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\r\n if (it) o = it;\r\n var i = 0;\r\n var F = function F() {};\r\n return {\r\n s: F,\r\n n: function n() {\r\n if (i >= o.length) return {\r\n done: true\r\n };\r\n return {\r\n done: false,\r\n value: o[i++]\r\n };\r\n },\r\n e: function e(_e) {\r\n throw _e;\r\n },\r\n f: F\r\n };\r\n }\r\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\r\n }\r\n var normalCompletion = true,\r\n didErr = false,\r\n err;\r\n return {\r\n s: function s() {\r\n it = it.call(o);\r\n },\r\n n: function n() {\r\n var step = it.next();\r\n normalCompletion = step.done;\r\n return step;\r\n },\r\n e: function e(_e2) {\r\n didErr = true;\r\n err = _e2;\r\n },\r\n f: function f() {\r\n try {\r\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\r\n } finally {\r\n if (didErr) throw err;\r\n }\r\n }\r\n };\r\n}\r\n```","author":{"url":"https://github.com/Tecode","@type":"Person","name":"Tecode"},"datePublished":"2023-08-28T03:21:22Z","url":"https://github.com/getsentry/sentry-javascript/issues/8870"}
| 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:84a9788a-783a-72be-ea49-de120840e827 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEA2:3284B6:734D18:9E08CF:6B044799 |
| html-safe-nonce | 7811d259b3a3a1aa901bb27b5ada1dc3594d7e9ca14fda6a80e0f4500048bcd3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUEyOjMyODRCNjo3MzREMTg6OUUwOENGOjZCMDQ0Nzk5IiwidmlzaXRvcl9pZCI6IjYzNDQ0MzQyNDMwMDI5NzYxNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1a66d23bc6fd61da70b468031b067bc3791b69ea87cf359c8cfd558caf3a7852 |
| hovercard-subject-tag | issue:1868884348 |
| 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/8870/issue_layout |
| twitter:image | https://opengraph.githubassets.com/71fb4b09978419bb090e44da4ca8b1905e0880bb4bd75ccb47c58212bd85e97f/getsentry/sentry-javascript/issues/8870 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/71fb4b09978419bb090e44da4ca8b1905e0880bb4bd75ccb47c58212bd85e97f/getsentry/sentry-javascript/issues/8870 |
| 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 | Tecode |
| 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