Title: Sentry 7.73.0 causes `styled-components` to fail to render with styles/CSS · Issue #9170 · getsentry/sentry-javascript · GitHub
Open Graph Title: Sentry 7.73.0 causes `styled-components` to fail to render with styles/CSS · Issue #9170 · getsentry/sentry-javascript
X Title: Sentry 7.73.0 causes `styled-components` to fail to render with styles/CSS · Issue #9170 · 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/9170
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry 7.73.0 causes `styled-components` to fail to render with styles/CSS","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 SDK are you using?\r\n\r\n@sentry/react\r\n\r\n### SDK Version\r\n\r\n7.73.0\r\n\r\n### Framework Version\r\n\r\nReact 17.0.2\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n```\r\nconst props = {\r\n dsn: window.config.sentryDsn,\r\n environment: window.config.sentryEnv,\r\n\r\n // we are leaving this at zero, so we only record error sessions:\r\n replaysSessionSampleRate: 0,\r\n\r\n replaysOnErrorSampleRate: 1,\r\n\r\n integrations: [\r\n new BrowserTracing(),\r\n new Sentry.Integrations.Breadcrumbs({\r\n console: false\r\n }),\r\n new Sentry.Replay({\r\n useCompression: false,\r\n maskAllText: true,\r\n maskAllInputs: true,\r\n blockAllMedia: true,\r\n }),\r\n ],\r\n tracesSampleRate: 0.2,\r\n ignoreErrors: [\r\n 'ResizeObserver loop limit exceeded',\r\n ],\r\n };\r\n try {\r\n Sentry.init(props);\r\n } catch (error) {\r\n console.error('Unable to initialize Sentry', error);\r\n }\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Our webapp was using Sentry 7.69.0, grommet v2.33.2, grommet-hpe-theme^4.2.0, and everything was working great and Grommet UI components rendered as expected. Here is an example that shows drop down, text input, icons and a data table:\r\n\r\n3. Renovate overnight created a PR that was auto merged for upgrading @sentry/react and @sentry/tracing from version 7.69.0 to version 7.73.0. \r\n4. The webapp built - and deployed and we noticed that UI components from the Grommet library no longer showed properly.\r\n\r\n5. I then went through the motions to upgrade one release at a time from v7.69 --> v7.73.0 - and found out that our webapp worked fine on version 7.72.0 but not on 7.73.0\r\n6. So, I look at what https://github.com/getsentry/sentry-javascript/releases/tag/7.73.0 contains - and it spoke about Sentry Replay... so I wonder - what happens if I remove replay from our webapp? so I change the Sentry.Init setup to not include Sentry.Replay. This is the adjusted sentry.init logic after removing Sentry.Replay:\r\n\r\n```\r\nconst props = {\r\n dsn: window.config.sentryDsn,\r\n environment: window.config.sentryEnv,\r\n\r\n // we are leaving this at zero, so we only record error sessions:\r\n replaysSessionSampleRate: 0,\r\n\r\n replaysOnErrorSampleRate: 1,\r\n\r\n integrations: [\r\n new BrowserTracing(),\r\n new Sentry.Integrations.Breadcrumbs({\r\n console: false\r\n }),\r\n ],\r\n tracesSampleRate: 0.2,\r\n ignoreErrors: [\r\n 'ResizeObserver loop limit exceeded',\r\n ],\r\n };\r\n try {\r\n Sentry.init(props);\r\n } catch (error) {\r\n console.error('Unable to initialize Sentry', error);\r\n }\r\n```\r\n\r\n7. Now the webapp loads and renders Grommet ui components as expected:\r\n\r\n8. So, with these steps... there is something about Sentry.Replay that is affecting our ui components. \r\n\r\n### Expected Result\r\n\r\nHaving Sentry.Replay enabled in v7.73.0 should not affect the webapp ui Grommet Components. \r\n\r\n### Actual Result\r\n\r\nPlease see screenshots above (steps to reproduce) where you will see before upgrading to v7.73.0 and after screenshots. ","author":{"url":"https://github.com/jornncc","@type":"Person","name":"jornncc"},"datePublished":"2023-10-03T19:38:50Z","url":"https://github.com/getsentry/sentry-javascript/issues/9170"}
| 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:7cc211bc-dce5-dba0-3f4f-b5ac569542e3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B520:3FA1F8:7ECB9:AA6A1:6B04AF31 |
| html-safe-nonce | eab64cffbfae9372a47896deb1d75971aafc9025ea9d111ce9730039ef0c3f95 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTIwOjNGQTFGODo3RUNCOTpBQTZBMTo2QjA0QUYzMSIsInZpc2l0b3JfaWQiOiIzMTc5NjU5Mjk1NzAwODU2NjI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8c2c2ebcf6c347ed9aec34a45bee15296fe6bd51747090bd1023912063ed3ef2 |
| hovercard-subject-tag | issue:1924820054 |
| 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/9170/issue_layout |
| twitter:image | https://opengraph.githubassets.com/54a05c8cb96a571baa92de709f39e587179f1863ec09124273747bfea8bdf8d4/getsentry/sentry-javascript/issues/9170 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54a05c8cb96a571baa92de709f39e587179f1863ec09124273747bfea8bdf8d4/getsentry/sentry-javascript/issues/9170 |
| 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 | jornncc |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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