Open eduardojpanzo opened 1 month ago
same issue here
Temporary: (this is a f***** sin)
plugins={[
plugin.current as any
]}
onMouseEnter={plugin.current.stop}
onMouseLeave={plugin.current.play as any}
This is a version mismatch error. Set the version for both embla-carousel-react
and embla-carousel-autoplay
to latest which is ^8.1.7. So your dependencies should look like this:
"embla-carousel-autoplay": "^8.1.7",
"embla-carousel-react": "^8.1.7",
This is a version mismatch error. Set the version for both
embla-carousel-react
andembla-carousel-autoplay
to latest which is ^8.1.7. So your dependencies should look like this:"embla-carousel-autoplay": "^8.1.7", "embla-carousel-react": "^8.1.7",
Hello, I also tried this and it didn't work. What I did was change the typing (I added any ) in the base component (components/ui/carousel)
type CarouselPlugin = UseCarouselParameters[1] | any;
You have to run npm install
after you change the versions in your package.json
file.
@alivault yes! I do..
Describe the bug
I'm trying to use the plugins prop to add plugins to the carousel.and I'm having a typing error.
My componet:
My dependencies
Affected component/components
Carousel
How to reproduce
This is the error:
Type 'AutoplayType' is not assignable to type 'CreatePluginType<LoosePluginType, {}>'.
more:
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting