react-image-crop icon indicating copy to clipboard operation
react-image-crop copied to clipboard

Not working on React 16.2

Open yashvantvala opened this issue 2 years ago • 4 comments

I have tried to install this library in react version 16.2 but it is not working.

yashvantvala avatar May 13 '22 04:05 yashvantvala

Hi, as you can see here the lib is made to support >=16.13.1 - https://github.com/DominicTobias/react-image-crop/blob/master/package.json#L50

However I'm curious what you mean by "not working"? What error do you get?

dominictobias avatar May 13 '22 10:05 dominictobias

It was throwing context error, btw thanks for the clarity. I will try to upgrade react version.

yashvantvala avatar May 13 '22 10:05 yashvantvala

Ah yeah I think context was introduced in 16.8. Tbh not sure why I change to 16.13.1, I think the min version used to be 16.8. Also I can't remember the reason for this now as I'm not using Context or Hooks in the lib but clearly it's breaking somehow 🤷‍♂️

dominictobias avatar May 13 '22 10:05 dominictobias

okay cool, I will try to go through the source code then.

yashvantvala avatar May 13 '22 10:05 yashvantvala