-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link Css file not working in Nextjs #2377
Comments
I would import it like this in the layout file if you use app router or in the _app file if you use page router. import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css"; |
This raise an Cannot resolve 'slick-carousel/slick/slick.css' issue on my project. I installed the package using the npm method and my project is using Nextjs 14. |
You also need to install slick-carousel like it is described on the README, I think. Maybe this solves it. |
ah ok, I see you guys use next.js with turbopack. I ran into the same issue, somehow it is not working with turbopack I have no clue why. Just turn it off and it will work. |
I have only tested it in my enterprise application so there are a lots of other dependency I thought that may be the cause. But if you can reproduce with a new next.js project would be nice if you either adjust the title of this issue or create a new issue and close this one. |
I also given up this package |
this issue was fixed for me after using the following code given below inside the _document.js file
|
Yeah, same issue with Vite in Laravel.. what a shame |
Guidelines for posting a new issue
But these file not loaded in rendering
The text was updated successfully, but these errors were encountered: