[Bug]: Cannot find module 'embla-carousel/components/Options' or its corresponding type declarations. TypeScript, React with Vite #780
Labels
bug
Something isn't working
resolved
This issue is resolved
typescript
Issue is related to TypeScript
Which variants of Embla Carousel are you using?
Steps to reproduce
It seems that the issue stems from the way
OptionsType
is imported in theuseEmblaCarousel.d.ts
file within theembla-carousel-react
folder innode_modules
. Instead of importing directly from'embla-carousel/components/Options'
, it should be imported directly from theEmblaOptionsType
type.Expected Behavior
Received behavior
Additional Context
The bug occurs when I build:
What browsers are you seeing the problem on?
No response
Version
v8.0.0
CodeSandbox
No response
Before submitting
The text was updated successfully, but these errors were encountered: