-
Notifications
You must be signed in to change notification settings - Fork 11
Uncaught Invariant Violation error after resize #4
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
Comments
Is this reproducible on the demo page? https://patricktran.github.io/react-magic-slider-dots/ If not, please provide a JSFiddle or CodeSandbox example. |
Hi, Thank you for your answer. |
Ok was able to reproduce the issue and I am currently working on an update. |
@malasaad82 Can you please try out 1.2.0-beta.0 npm install react-magic-slider-dots@next |
Hi @patricktran , Regards |
@MohammedAlasaad Please post your react-slick settings with the breakpoints defined. Also what's your total number of slides? I'd like to debug using your exact configuration. |
Hi @patricktran , getSettings() { let responsive = [ ] |
@MohammedAlasaad Thanks for uploading your config. My initial testing is showing that the root cause of this issue is a bug in the react-slick package. Notice in my GIF, I have |
@MohammedAlasaad Here's another example of how I was able to reproduce the bug in |
I have opened an issue with Please watch. |
Hi,
I got this error. If we resize the window and then we do swipe for the last slide and then resize the window again for full size.
react.development.js:88 Uncaught Invariant Violation: React.cloneElement(...): The argument must be a React element, but you passed undefined. at invariant (webpack:///./node_modules/react/cjs/react.development.js?:88:15) at Object.cloneElement (webpack:///./node_modules/react/cjs/react.development.js?:840:51) at Object.cloneElementWithValidation [as cloneElement] (webpack:///./node_modules/react/cjs/react.development.js?:1782:33) at MagicSliderDots.render (webpack:///./node_modules/react-magic-slider-dots/dist/index.es.js?:158:157) at finishClassComponent (webpack:///./node_modules/react-dom/cjs/react-dom.development.js?:14741:31) at updateClassComponent (webpack:///./node_modules/react-dom/cjs/react-dom.development.js?:14696:24) at beginWork (webpack:///./node_modules/react-dom/cjs/react-dom.development.js?:15644:16) at performUnitOfWork (webpack:///./node_modules/react-dom/cjs/react-dom.development.js?:19312:12) at workLoop (webpack:///./node_modules/react-dom/cjs/react-dom.development.js?:19352:24) at HTMLUnknownElement.callCallback (webpack:///./node_modules/react-dom/cjs/react-dom.development.js?:149:14)
The text was updated successfully, but these errors were encountered: