Comments (2)
Hi @rxtsel,
Thanks for the bug report. It seems like many devs are having this problem.
- See this: #726 (reply in thread)
Setting moduleResolution
to node
in tsconfig
solves it, but I donβt know why yet.
Feel free to help me out and read about the new bundler
option that TypeScript introduced recently which is causing these errors.
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.
- Have you tried your solution?
- Does adding
allowImportingTsExtensions: true
solve this problem? - Which package manager are you using?
- Could be related to #778
Best,
David
from embla-carousel.
Hi @davidjerleke,
Thanks for responding.
Indeed, changing the value of moduleResolution
from bundler
to node
worked for me. Thank you very much, we can close this issue, although it would be good if it detected whether that line is needed and added it or changed the value if necessary. Or simply add it to the documentation.
from embla-carousel.
Related Issues (20)
- [Bug]: Autplay stops working after drag HOT 2
- [Bug]: Flickering when adding icon or image in slides (8.0) HOT 3
- [Bug]: Direction rtl reverses y axis direction HOT 5
- [Bug]: Slide hanging if overdragged/scrolled HOT 11
- [Bug]: Angular autoplay error HOT 1
- [Bug]: Autoplay fast scroll when opened in a new tab HOT 7
- [Bug]: no specific name for plugin import, have to use "index" instead HOT 4
- [Bug]: Embla Carousel's animation becomes less smooth when the battery saving mode is enabled. HOT 1
- [Bug]: Render when slides are wider than view size HOT 5
- [Bug]: When using the wheel gesture to swipe the carousel, for the first slide and the last slide, there are excessive blank space. HOT 2
- [Bug]: Thumbnails example won't work in RTL HOT 2
- [Bug]: Height is getting set to 0 HOT 4
- [Bug]: Scroll broken after direction update HOT 15
- [Bug]: Jest testing bug return TypeError: undefined is not a function HOT 2
- [Bug]: Bad scroll progress reporting when loop = true HOT 1
- [Bug]: beforeUnmount destroys too soon during Vue transitions HOT 10
- [Bug]: Fade example missing dependency and missing vanilla examples HOT 10
- [Bug]: Image disperses after window resize HOT 1
- [Bug]: Fade plugin has wrong peer dependency version
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 embla-carousel.