React-slick: TypeError: Cannot read property 'getBoundingClientRect' of null

Created on 22 Dec 2016  路  4Comments  路  Source: akiran/react-slick

I'm getting the following error, I am loading my data via react map. Here is my code:

var settings = {
    dots: true,
    infinite: false,
    speed: 500,
    slidesToShow: 4,
    slidesToScroll: 1
};
const renderIfData = ( lineup ) => {
    if ( lineup ) {
        return  <Slider {...settings}>
             {lineup[0].competitors.map( ( competitor) => {
            return  <BusinessReviewsCardContainer key={competitor._globalId} data={competitor} />
        })}
        </Slider>
    } else {
        return <h4>No reviews yet!</h4>;
    }
};

export const LineupsReputation = ( { lineup } ) => (
    <div>
            { renderIfData( lineup ) }
    </div>
);

Most helpful comment

Wrap your BusinessReviewsCardContainer in a div.

All 4 comments

i solved after reinstall version to 0.13.6

@jjailbird I than get the following error any ideas
TypeError: Cannot read property 'className' of undefined

Wrap your BusinessReviewsCardContainer in a div.

Same issue as #583

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Exomnius picture Exomnius  路  3Comments

slashwhatever picture slashwhatever  路  3Comments

briziel picture briziel  路  3Comments

enriquelopez-atlas picture enriquelopez-atlas  路  3Comments

PolGuixe picture PolGuixe  路  3Comments