0

I'm having a hard time understanding what's happening here. I'm installing the "react-slick" component and I followed the github's instruction but there seems to be something going wrong (The slider is not found) Could you please help me with this? Here's the relevant parts:

Where it's called: image

Where it's rendered: image

My package.json file: image

Thanks a lot!

4

1 回答 1

0

尝试改变你的

import {SimpleSlider} from "SimpleSlider.js"

使用导出的默认和相对路径:

import SimpleSlider from "./SimpleSlider.js"

如果不是,请发布确切的错误消息

于 2017-11-27T12:33:59.283 回答