Comments (11)
import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';
This is how I solved the problem. Add 'slick-carousel/slick/slick-theme.css' should fix the problem
from vue-slick.
I needed to make sure the containing element of the <slick>
component had a defined width. 😞
from vue-slick.
I had the same problem, solved it by adding
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/[email protected]/slick/slick.css"/> <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/[email protected]/slick/slick-theme.css"/>
in my index.html
head
from vue-slick.
This most likely has nothing to do with vue-slick, because it is just a wrapper for vue. You should better address your question to original plugin authors. But I think this is just a css problem.
from vue-slick.
I just follow the guideline, that's it.
from vue-slick.
I'm also getting this issue too.
from vue-slick.
I would suggest adding slick css from node_modules/slick-carousel/slick/slick.css
from vue-slick.
I'm having this issue as well, but I traced it back to the fact that the HTML element that held my slick component was part of a CSS Grid element with a variable width. i.e.:
<div class="grid" style="display: grid; grid-template-columns: 200px 1fr;">
<div class="sidebar">...</div>
<div class="main">
<slick ...>...</slick>
</div>
</div>
I think in this case, the plugin can't determine the width of the slick-track, so everything goes a bit nuts.
EDIT: Yup ... this has been reported: kenwheeler/slick#2959
from vue-slick.
So what do you do, the link doesn't have a solution that works
from vue-slick.
How I solved it:
import './../node_modules/slick-carousel/slick/slick.css';
from vue-slick.
I had this issue after running npm run prod
So I also added the cdn links to the css in my template and it works
from vue-slick.
Related Issues (20)
- jQuery still needed ? HOT 1
- ADA tabbing through dots doesn't work
- @SerlokPK, I wouldn't use VueSlickCarousel. I found a nasty bug that traps the users' vertical touch on mobile devices. I've filed it in the issues section but got no response, so I moved over to this build of slick because the bug doesn't exist and has more community support anyway. HOT 1
- Responsive option not working when you resize your phone to mobile
- Vue 3: Cannot read property '_c' of undefined HOT 2
- appendArrows and appendDots not working
- TypeError: Cannot read properties of undefined (reading '_c') HOT 1
- Slick should be a peerDependency HOT 1
- TypeError: Cannot read properties of undefined (reading '_c') HOT 6
- Edge Warning: [Violation]Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
- vue-slick swipe in mobile web app
- Does not work in ie11 HOT 1
- Some methods don't work HOT 4
- UMD build error
- nuxt-link destroys slick instance HOT 2
- slidesToShow doesn't work right
- percentage of centerPadding doesn't work on vue-slick
- SLICK BAR NOT DYMAICALLY LOADED WHEN NEW IMAGE HAS ADDED
- Removes core.js HOT 2
- Infinite loop (getDotCount)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-slick.