Any reason for react 18 as peer dependency? #391
-
Is there any particular compatibility reason why embla-carousel-react requires React 18 as a peer? It would be nice to have it compatible with React 17 without having to install with --legacy-peer-deps. Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @horseeyephil, Thank you for your question.
The answer is no, no compatibility reasons. Embla works just fine with React 17. About the solution you’re suggesting: I can’t see that it’s mentioned in the NPM documentation? So I don’t know if it works in all cases like with NPM and Yarn etc. We also have this StackOverflow thread with different solutions but they aren’t mentioned in the NPM documentation neither. Would you mind doing some investigating and testing to see if your suggestion works with both NPM, Yarn, React 18 and 17 without problems? If yes, I would be happy to accept a Pull Request and I can re-open this issue: Best, |
Beta Was this translation helpful? Give feedback.
-
Hi @davidjerleke ! I will think about the best way to test and validate according to your suggestion (I'm thinking symlinks? 🤔 ) In the meantime I'll post some notes: I think this blog makes it pretty clear: Thanks again! Will try to get the PR up soon |
Beta Was this translation helpful? Give feedback.
-
Thanks @davidjerleke ! Best, |
Beta Was this translation helpful? Give feedback.
Thanks @davidjerleke !
I settled on a validation method with the help of gitpkg!
Here is the PR: #392
Best,
horseeye