-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Feature: TypescriptPackage: 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
6.19.6
Framework Version
6.19.6
Link to Sentry event
No response
Steps to Reproduce
Hi, I've started getting the following Typescript errors in my build. It seems it has to do with ErrorBoundaryProps
not having a children
property declared. Adding children: React.ReactNode
to ErrorBoundaryProps fixed the issue for me.
DefinitelyTyped/DefinitelyTyped#46691
Expected Result
Typescript errors should not occur when React.ErrorBoundary has children
Actual Result
No overload matches this call.
Overload 1 of 2, '(props: ErrorBoundaryProps | Readonly<ErrorBoundaryProps>): ErrorBoundary', gave the following error.
Type '{ children: Element; fallback: Element; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ErrorBoundary> & Readonly<ErrorBoundaryProps>'.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ErrorBoundary> & Readonly<ErrorBoundaryProps>'.
Overload 2 of 2, '(props: ErrorBoundaryProps, context: any): ErrorBoundary', gave the following error.
Type '{ children: Element; fallback: Element; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ErrorBoundary> & Readonly<ErrorBoundaryProps>'.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ErrorBoundary> & Readonly<ErrorBoundaryProps>'
royhadad, mdugue, asterikx, dbousamra, eleven-net-cn and 5 moremunkacsimark
Metadata
Metadata
Assignees
Labels
Feature: TypescriptPackage: reactIssues related to the Sentry React SDKIssues related to the Sentry React SDK