-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Feature: TypescriptMeta: Help WantedPackage: reactIssues related to the Sentry React SDKIssues related to the Sentry React SDK
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/getsentry/sentry-javascript/releases
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
- 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<...>'.
Metadata
Metadata
Assignees
Labels
Feature: TypescriptMeta: Help WantedPackage: reactIssues related to the Sentry React SDKIssues related to the Sentry React SDK