kareemaly/react-items-carousel

'width' attribute NaN

Closed this issue · 4 comments

Hello,

Using your basic example I got the following error :

  • Warning: Received NaN for the width attribute. If this is expected, cast the value to a string.

Here is what I did :

  • change the children (I did not used createChildren(20) where createChildren is using n => range(n).map(....)
  • I removed all the placeholder configurations cause I don't need them

Thank you for your help.

I have some news ;

This time I used the same example hat you used in your demo and :

  • I have the same error
  • when I remove the placeholder when I access the page where I have the carousel there is no errors but when I ctrl-F5 or F5, the error is displaying.

By the way I'm using
"react": "^16.3.1",
"react-dom": "^16.3.1",

image

where details.js is my component

PR #24 is related

Should be fixed by #24 , check new version 2.3.7