Skip to content

@sentry/react throws "Cannot convert a Symbol value to a string" from hoist-non-react-statics #18966

@bhollis

Description

@bhollis

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react

SDK Version

10.35.0

Framework Version

React 19.2.3

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

https://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.

Expected Result

No error is thrown.

Actual Result

Image

Additional Context

Reverting to @sentry/react 10.32.1 fixes this.

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

Labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions