Closed ghost closed 7 years ago
@gopchi Hi, it looks like you have a conflict in the dependencies of the project. I have created a branch react-16-example in which the component works as expected.
Please check again and if you'll see that the problem still exists please provide a code sample for possible analysis.
I'm getting the same error on a fresh React App, I'm using the example responsive code you provided in the read me. The slider renders fine but the arrows don't work and throw this error.
ReactBaseClasses.js:64 Uncaught TypeError: this.updater.enqueueCallback is not a function
at AliceCarousel../node_modules/react-alice-carousel/node_modules/react/lib/ReactBaseClasses.js.ReactComponent.setState (ReactBaseClasses.js:64)
at AliceCarousel._slideToItem (react-alice-carousel.js:770)
at AliceCarousel._this._slideNext (react-alice-carousel.js:379)
at HTMLUnknownElement.callCallback (react-dom.development.js:542)
at Object.invokeGuardedCallbackDev (react-dom.development.js:581)
at Object.invokeGuardedCallback (react-dom.development.js:438)
at Object.invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:452)
at executeDispatch (react-dom.development.js:836)
at executeDispatchesInOrder (react-dom.development.js:858)
at executeDispatchesAndRelease (react-dom.development.js:956)
at executeDispatchesAndReleaseTopLevel (react-dom.development.js:967)
at Array.forEach (
Here is my package.json: { "name": "test-app", "version": "0.1.0", "private": true, "dependencies": { "react": "^16.2.0", "react-dom": "^16.2.0", "react-scripts": "1.1.0" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" }, "devDependencies": { "react-alice-carousel": "^1.7.2" } }
@ryguyrocks please update version to 1.7.5
Hi, I tried using the lib with React 16 and it crashes when you are navigating between slides.
Here is the error: http://prntscr.com/gzfzzw