Skip to content

Property children is missing in ProfilerProps type #6708

@michalchudziak

Description

@michalchudziak

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

  1. Wrap any component with <Sentry.Profiler /> component in the TypeScript app
  2. 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<...>'.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions