ValentinH / react-easy-crop

A React component to crop images/videos with easy interactions
https://valentinh.github.io/react-easy-crop/
MIT License
2.34k stars 167 forks source link

'Cropper' cannot be used as a JSX component. #518

Closed Rahul-Trimukhe closed 8 months ago

Rahul-Trimukhe commented 8 months ago

Describe the bug Its instance type 'Cropper' is not a valid JSX element. Type 'Cropper' is missing the following properties from type 'ElementClass': context, setState, forceUpdate, props, refsts(2786)

To Reproduce Steps to reproduce the behavior: Version "react-easy-crop": "^5.0.5", Typescript Version 4.7

ValentinH commented 8 months ago

Please provide a CodeSandbox showing the issue. There is definitely something wrong in the way you import the component as we have plenty of working demos.