-
-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Description
Just a simple install and implement exactly like mentioned in docs and you get that error.
Here are the steps to reproduce the error:
- npx create-next-app
- yarn install @splidejs/react-splide
- create a "pages" folder and add a "index.js" file
- add the following in the index.js:
import '@splidejs/splide/dist/css/themes/splide-default.min.css';
import { Splide, SplideSlide } from '@splidejs/react-splide';
export default function Home(props) {
return (
<Splide
options={{
rewind: true,
width: "100%",
height: 400,
drag: true,
cover: true,
pauseOnHover: true,
pauseOnFocus: true,
lazyLoad: true,
accessibility: true,
}}
onMoved={(splide, newIndex) => { console.log('moved', newIndex) }}
>
<SplideSlide>
<img src="/image_1.jpg" alt="Image 1" />
</SplideSlide>
<SplideSlide>
<img src="/image_2.jpg" alt="Image 2" />
</SplideSlide>
</Splide>
)
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels