Title: Cannot read property 'map' of undefined · Issue #3840 · getsentry/sentry-javascript · GitHub
Open Graph Title: Cannot read property 'map' of undefined · Issue #3840 · getsentry/sentry-javascript
X Title: Cannot read property 'map' of undefined · Issue #3840 · getsentry/sentry-javascript
Description: Package + Version @sentry/browser @sentry/node raven-js raven-node (raven for node) other: Version: 6.8.0 Description sometimes get this error when the page loads ./node_modules/@sentry/tracing/esm/browser/metrics.js in _tagMetricInfo at...
Open Graph Description: Package + Version @sentry/browser @sentry/node raven-js raven-node (raven for node) other: Version: 6.8.0 Description sometimes get this error when the page loads ./node_modules/@sentry/tracing/esm...
X Description: Package + Version @sentry/browser @sentry/node raven-js raven-node (raven for node) other: Version: 6.8.0 Description sometimes get this error when the page loads ./node_modules/@sentry/tracing/esm...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3840
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot read property 'map' of undefined","articleBody":"## Package + Version\r\n\r\n- [x] `@sentry/browser`\r\n- [ ] `@sentry/node`\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [ ] other:\r\n\r\n### Version:\r\n\r\n```\r\n 6.8.0\r\n```\r\n\r\n## Description\r\n\r\nsometimes get this error when the page loads\r\n\r\n./node_modules/@sentry/tracing/esm/browser/metrics.js in _tagMetricInfo at line 174:36\r\n```\r\n }\r\n transaction.setTag('lcp.size', this._lcpEntry.size);\r\n }\r\n if (this._clsEntry) {\r\n logger.log('[Measurements] Adding CLS Data');\r\n this._clsEntry.sources.map(function (source, index) {\r\n return transaction.setTag(\"cls.source.\" + (index + 1), htmlTreeAsString(source.node));\r\n });\r\n }\r\n };\r\n /** Starts tracking the Cumulative Layout Shift on the current page. */\r\n```\r\n./node_modules/@sentry/tracing/esm/browser/metrics.js in addPerformanceEntries at line 152:18\r\n```\r\n op: 'web.vitals',\r\n startTimestamp: this._measurements['mark.fid'].value,\r\n });\r\n }\r\n transaction.setMeasurements(this._measurements);\r\n this._tagMetricInfo(transaction);\r\n }\r\n };\r\n /** Add LCP / CLS data to transaction to allow debugging */\r\n MetricsInstrumentation.prototype._tagMetricInfo = function (transaction) {\r\n if (this._lcpEntry) {\r\n```\r\n","author":{"url":"https://github.com/hubingkang","@type":"Person","name":"hubingkang"},"datePublished":"2021-07-27T08:11:05Z","url":"https://github.com/getsentry/sentry-javascript/issues/3840"}
| 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:3446ddd1-43e3-73f5-f7cd-05f1250926f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6E8:2B4064:1A8030:24A2FA:6B0466B2 |
| html-safe-nonce | 863498c8c290c298890b203019c307c1918a485a19a79d7beb788185e5d8de5e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkU4OjJCNDA2NDoxQTgwMzA6MjRBMkZBOjZCMDQ2NkIyIiwidmlzaXRvcl9pZCI6IjMzNzExMTYzNDkyMDczNzM0OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8fa7fcf46d2f5c2795295593b64e9eab772740c76e153e4ca656d58a95445c1b |
| hovercard-subject-tag | issue:953621481 |
| 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/3840/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33a4307e5d00ae550cdd494ade58998bb6d7f5f0bf4c00dbbcb5d5ec4759583c/getsentry/sentry-javascript/issues/3840 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33a4307e5d00ae550cdd494ade58998bb6d7f5f0bf4c00dbbcb5d5ec4759583c/getsentry/sentry-javascript/issues/3840 |
| og:image:alt | Package + Version @sentry/browser @sentry/node raven-js raven-node (raven for node) other: Version: 6.8.0 Description sometimes get this error when the page loads ./node_modules/@sentry/tracing/esm... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hubingkang |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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