Embla-carousel: Invalid hook call - React version mismatch

Created on 19 Jul 2020  路  3Comments  路  Source: davidcetinkaya/embla-carousel

@davidcetinkaya If you go spin up a codesandbox to try out embla (react) like I did you'll get a react and react-dom version mismatch since embla has it's own react and react-dom dependencies. Would it not make sense to have these be dev dependencies? In that codesandbox example if you change the react and react-dom versions to 16.13.1 then the slider works as intended.

bug dependencies react resolved

Most helpful comment

@davidcetinkaya First of all, that was an insanely fast response. That did fix the issue, thank you so much for doing that!

Embla is honestly the best carousel I've seen in a decade of web development, so kudos to you and everyone who's contributed.

All 3 comments

Hello @jamesdbruner,

Thank you for noticing this. I've released v.3.0.19 which should solve this issue as you suggested.

Give it a go and let me know if it helps!

Best,
David

@davidcetinkaya First of all, that was an insanely fast response. That did fix the issue, thank you so much for doing that!

Embla is honestly the best carousel I've seen in a decade of web development, so kudos to you and everyone who's contributed.

Your timing was good, I was fixing some small stuff on the documentation page when you submitted the issue 馃槈.

Thank you @jamesdbruner and nice catch with the dependencies. Enjoy 馃檪!

Kindly,
David

Was this page helpful?
0 / 5 - 0 ratings

Related issues

huttameps picture huttameps  路  4Comments

iamkevingreen picture iamkevingreen  路  3Comments

RectoVersoDev picture RectoVersoDev  路  3Comments

nikrowell picture nikrowell  路  7Comments

ej-mitchell picture ej-mitchell  路  5Comments