akiran/react-slick

Module not found: Can't resolve './fonts/slick.svg#slick' ! Please!

Opened this issue · 1 comments

Module not found: Can't resolve './fonts/slick.svg#slick'
15 | src: url('./fonts/slick.eot');
16 | src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');

17 | }
| ^
18 | /* Arrows */
19 | .slick-prev,
20 | .slick-next

I had the same problem ,same error message

I use it in nextjs 14

page.tsx
"use client";
import Slider from "react-slick";
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

I tried to use 'next dev' instead of 'next dev --turbo'. It works for me, and you should try it.