davidjerleke / embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.
https://www.embla-carousel.com
MIT License
5.4k stars 166 forks source link

After running for a while 'cannot read properties of undefined' error is thrown #541

Closed jjachowski closed 11 months ago

jjachowski commented 11 months ago

Bug is related to

Embla Carousel version

Describe the bug

CodeSandbox

Steps to reproduce

  1. Open link in the browser
  2. Wait
  3. Error should be thrown after longer while
  4. Can be reproduced instantly by setting delay: 1 to autoplay options image

Expected behavior

Additional context

davidjerleke commented 11 months ago

Hi @jjachowski,

Thank you very much for a complete bug report. I’ll investigate this when possible.

Best, David

hmartiins commented 11 months ago

Hi! I would like to give feedback that this error has already appeared in the error monitoring of my site as well, but we did not have time to stop to investigate to conclude that it was the embla that was logging this error.

image

davidjerleke commented 11 months ago

@jjachowski please try this CodeSandbox and see if the problem is solved there.

Thanks in advance.

Best, David

jjachowski commented 11 months ago

@davidjerleke sorry for not replying sooner, must have missed notification. Looks great, thank you very much for that fix :)

davidjerleke commented 11 months ago

@hmartiins. @jjachowski thanks for confirming 👍. This bug fix will be released with v8.0.0-rc12.

Cheers, David

davidjerleke commented 10 months ago

@hmartiins, @jjachowski, a bug fix for this has been released with v8.0.0-rc12.