Closed Zoomelectrico closed 5 years ago
Hey, there. I think it's just that the values
prop is undefined somehow.
I just made a NextJS app from that example to confirm it works. Try it out. unzip, npm install and npm run dev. Seems fine no errors.
Hi! @sghall as you suggets the problem was that values
prop was undefined for short time during a api request. Thanks for the help, and sorry for the troubles :+1: !!
Great. Glad it worked.
Problem or feature description:
I get an "Cannot read property 'map' of null" error when I used Next.js. According to the code and the error code, is caused by the function getHandles at /react-compound-slider/Slider/utils.js:94:24
Steps to reproduce (for problems):
Copy & Paste the example (https://sghall.github.io/react-compound-slider/#/slider-demos/horizontal) in a Next.js
Versions (for problems):
React-Compound-Slider: 2.3.0
React: 16.9.0
Browser: 77.0.3865.90
Operating System: Ubuntu 18.04 x64
Next.js: 9.0.6
Error Code:
Thanks in Advance!!