React-slick: TypeError: null is not an object (evaluating 'elem.getBoundingClientRect')

Created on 10 Apr 2017  路  7Comments  路  Source: akiran/react-slick

On import, throws that error and fails to work out of the box.

Most helpful comment

{
list.length?
{
list.map(item =>{
return
})
}

:''
}

i use this

All 7 comments

Cannot read property 'getBoundingClientRect' of null
seems quite the same

I have the same issue. It looks like slickList.querySelector('[data-index="0"]') is empty in my case

I'm getting Cannot read property 'getBoundingClientRect' of null on my Jest tests and can't seem to be able to get around it

Also seeing this as of 14.5

for a time being it doesn't get merged. use 0.12.2 version of react-slick

{
list.length?
{
list.map(item =>{
return
})
}

:''
}

i use this

This issue is fixed in #826

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vugman picture vugman  路  3Comments

adamthewan picture adamthewan  路  4Comments

PolGuixe picture PolGuixe  路  3Comments

darkalor picture darkalor  路  4Comments

briziel picture briziel  路  3Comments