Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSX element class does not support attributes because it does not have a 'props' property. #522

Closed
Rahul-Trimukhe opened this issue Mar 25, 2024 · 8 comments · Fixed by #523
Labels
released This issue/pull request has been released.

Comments

@Rahul-Trimukhe
Copy link

Thanks for your response on my earlier bug report.
Screenshot 2024-03-25 at 8 58 17 AM
Please find below repo URL I have provided you access to the repo.
https://github.com/RC-Library/EasyCrop.git

If you want we connect and screen share demo for the issue.

I would like to say Thank you for your great contribution to the community.

@ValentinH
Copy link
Owner

Thanks for the reproduction. I found a fix working on your repository. See the attached PR.

Copy link

github-actions bot commented Mar 25, 2024

🚀 Fix was released in v5.0.6 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Mar 25, 2024
@beingtyson
Copy link

image

there is still the problem

@ValentinH
Copy link
Owner

Could you please share some code?

@Rahul-Trimukhe
Copy link
Author

Does onCropAreaChange={setCroppedArea} has removed?
Screenshot 2024-04-15 at 9 03 30 PM

@ValentinH
Copy link
Owner

You need to tell TS that the state is Area | null in the useState call.

@Rahul-Trimukhe
Copy link
Author

I confirm the issue has been resolved. Thanks a lot for your efforts.

@ValentinH
Copy link
Owner

You are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants