-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[bug]: Type error: using autoplay in carousel #4320
Comments
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
|
Hello, I also tried this and it didn't work. type CarouselPlugin = UseCarouselParameters[1] | any; |
You have to run |
@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
The text was updated successfully, but these errors were encountered: