-
Notifications
You must be signed in to change notification settings - Fork 537
Open
Labels
Type: Bug 🐛Oh no! A bug or unintentional behaviorOh no! A bug or unintentional behavior
Description
Is there an existing issue for this?
- I have searched the existing issues
Code of Conduct
- I agree to follow this project's Code of Conduct
Victory version
37.3.6
Code Sandbox link
No response
Bug report
Working on upgrading our app to Expo 53 and React Native 0.79, with the React 19 upgrade. Bumped `@types/react` and `@types/react-dom` to v19 as well to match, and encountering the following TS error when using Victory components:
TS2786: VictoryChart cannot be used as a JSX component.
Its type (props: VictoryChartProps) => Element is not a valid JSX element type.
Type (props: VictoryChartProps) => Element is not assignable to type
(props: any) => ReactNode | Promise<ReactNode>
Type Element is not assignable to type ReactNode | Promise<ReactNode>
Property children is missing in type ReactElement<any, any> but required in type ReactPortal
This is possibly related to https://github.com/DefinitelyTyped/DefinitelyTyped/issues/66841, though we were previously on `@types/react` 18.3.12 and `@types/react-dom` 18.3.1 and those worked fine.Steps to reproduce
Expected behavior
No typing errorsActual behavior
Typing errorsEnvironment
- Device: Desktop
- OS: MacOS 26
- Node: 22
- Yarn: 1Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: Bug 🐛Oh no! A bug or unintentional behaviorOh no! A bug or unintentional behavior