You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrap any component with <Sentry.Profiler /> component in the TypeScript app
TypeScript compiler will throw an error
Expected Result
TypeScript compiler not to throw an error when adding a child to <Sentry.Profiler>
Actual Result
Type '{ children: Element; name: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Profiler> & Pick<Readonly<ProfilerProps>, never> & InexactPartial<...> & InexactPartial<...>'.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Profiler> & Pick<Readonly<ProfilerProps>, never> & InexactPartial<...> & InexactPartial<...>'.
The text was updated successfully, but these errors were encountered:
Generally we recommend using withProfiler HOC over the Sentry.Profiler since fills in the component name, but you're right that this error shouldn't be happening.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/react
SDK Version
7.26.0
Framework Version
No response
Link to Sentry event
No response
Steps to Reproduce
<Sentry.Profiler />
component in the TypeScript appExpected Result
TypeScript compiler not to throw an error when adding a child to
<Sentry.Profiler>
Actual Result
The text was updated successfully, but these errors were encountered: