akiran / akiran/react-slick

Slider content donot show up on production

オープン
#1,884 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
11.9k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

In local development the Slider is working fine but in production the slider is not showing up

I am using react-slick@0.26.1

### Production
![Screenshot from 2020-08-30 18-05-05](https://user-images.githubusercontent.com/26792137/91658866-a6826900-eaeb-11ea-98ff-f282c769e21a.png)

### Local Development
![Screenshot from 2020-08-30 18-06-52](https://user-images.githubusercontent.com/26792137/91658872-b0a46780-eaeb-11ea-9675-d1bfa0579e02.png)

### Code
```
import React from "react";
import "./ProductList.css";
import Product from "./Product";
import Slider from "react-slick";
import {
ChevronLeft as PrevArrowIcon,
ChevronRight as NextArrowIcon,
} from "@material-ui/icons";

function NextArrow(props) {
const {onClick } = props;
return (

);
}

function PrevArrow(props) {
const {onClick } = props
return (

);
}

const HorizontalSeparator = () => (


);

// configuration for carousel
let settings = {
dots: false,
infinite: true,
speed: 500,
slidesToShow: 5,
initialSlide: 0,
nextArrow: ,
prevArrow: ,
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 5,
slidesToScroll: 5,
infinite: true,
dots: true,
},
},
{
breakpoint: 600,
settings: {
slidesToShow: 3,
slidesToScroll: 3,
initialSlide: 3,
},
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
},
},
],
};

const ProductList = ({ title, data ,styles}) => {
return (


{title}



{data?.map((item, index) => (


{/* HorizontalSeparator should not follow after last item */}
{index +1 !== data.length && }

))}


);
};

export default ProductList;

```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。