question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vue package - Incorrect types for emblaApi

See original GitHub issue

Bug is related to

  • embla-carousel-vue

Embla Carousel version

  • v7.0.2

Describe the bug

The typings are wrong for emblaApi that are exposed from embla-carousel-vue package. The current type is:

  • 'EmblaCarouselType | HTMLElement'

Expected behavior

The type should be:

  • 'EmblaCarouselType | null'

Additional context

Thanks @rojadesign for reporting this.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
davidjerlekecommented, Sep 12, 2022

@rojadesign, thanks again for reporting this problem 👍🏻.

1reaction
davidjerlekecommented, Sep 12, 2022

Hi @rojadesign,

I just released v7.0.3 that includes the fix for this type bug. Please update to the latest version and give it a go. Let me know how it goes.

Thanks for reporting this.

Best, David

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue 3 wrapper · Issue #17 · davidjerleke/embla-carousel
@rojadesign yes, this is clearly a TypeScript related bug in the embla-carousel-vue package because the typings are wrong. The type for emblaApi ......
Read more >
embla-carousel-react - NPM Package Overview - Socket - Socket.dev
A lightweight carousel library with fluid motion and great swipe precision. Version: 7.0.3 was published by davidjerleke. Start using Socket to analyze ...
Read more >
Options - Embla Carousel
Options. Embla Carousel takes various options in order to customize how the carousel works. You can provide options in different ways.
Read more >
embla-carousel-react: Versions | Openbase
#366 - Vue package - Incorrect types for emblaApi ... #322 - Breakpoints option; #327 - Expose plugin API:s from the Embla API;...
Read more >
TypeScript errors when editing old Vue 3 components but not ...
This release ships TypeScript typings that rely on Template Literal Types and requires TS >= 4.1. Why did question asker run into this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found