Title: @sentry/react throws "Cannot convert a Symbol value to a string" from hoist-non-react-statics · Issue #18966 · getsentry/sentry-javascript · GitHub
Open Graph Title: @sentry/react throws "Cannot convert a Symbol value to a string" from hoist-non-react-statics · Issue #18966 · getsentry/sentry-javascript
X Title: @sentry/react throws "Cannot convert a Symbol value to a string" from hoist-non-react-statics · Issue #18966 · 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/18966
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@sentry/react throws \"Cannot convert a Symbol value to a string\" from hoist-non-react-statics","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?\n\n@sentry/react\n\n### SDK Version\n\n10.35.0\n\n### Framework Version\n\nReact 19.2.3\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n_No response_\n\n### Steps to Reproduce\n\nhttps://github.com/getsentry/sentry-javascript/blob/develop/packages/react/src/hoist-non-react-statics.ts#L146 is throwing \"Cannot convert a Symbol value to a string\" because `key` is `Symbol.hasInstance`. This is happening when calling `withProfiler(App)` where App is my main component.\n\n\n### Expected Result\n\nNo error is thrown.\n\n### Actual Result\n\n\u003cimg width=\"568\" height=\"120\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/2018e938-d634-4cb0-8723-a32007b655f6\" />\n\n### Additional Context\n\nReverting to @sentry/react 10.32.1 fixes this.\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/bhollis","@type":"Person","name":"bhollis"},"datePublished":"2026-01-25T00:25:15Z","url":"https://github.com/getsentry/sentry-javascript/issues/18966"}
| 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:eac34f84-e3df-2f6e-9add-3647124f0e2f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6DC:C9BDE:3E8775:52EB8D:6B04D67A |
| html-safe-nonce | eb910f49ab1e72fed13c26d5fab3c3b9bcc021b8ae742d80355c8a30ca2be066 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkRDOkM5QkRFOjNFODc3NTo1MkVCOEQ6NkIwNEQ2N0EiLCJ2aXNpdG9yX2lkIjoiNTgzMzIyODkwNDUxMjY3MzQwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f1dddcb8f32457a311cd7d1c0f33d6a8b7c85cd70cf480a746be5471c5be8c7c |
| hovercard-subject-tag | issue:3852323138 |
| 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/18966/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e19747bab56412b43b8e4788717cfcdc34c04ed5898d745d4c19fbbe54831e16/getsentry/sentry-javascript/issues/18966 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e19747bab56412b43b8e4788717cfcdc34c04ed5898d745d4c19fbbe54831e16/getsentry/sentry-javascript/issues/18966 |
| 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 | bhollis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965 |
| 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 | 68cfb59cd750dff2f222256898e901425584e5e9 |
| 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