-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
TypeErrorCannot read property '0' of undefined #27
Comments
Hi @bitttttten, Thank you for your kind words and taking time to report this 👍. That's strange because I'm assuming your android is a touch device 😕? I don't know if this is a browser specific bug but we should definitely look into this.
I should probably apply for the BrowserStack open source program to be able to test this device. But unfortunately it could take some time to get the application processed. I'll let you know as soon as I'm on to something. Meanwhile, if you find any information like a relevant stackoverflow thread or similar that could point me in the right direction, please share it. Thank you for your patience! Kindly, |
I can't actually reproduce it myself! Also I don't have an Android 8 device. This error actually came from LogRocket which is like Sentry if you are familiar with that. So it was an error that happened on one of my sites that an error reporter tracked and reported. I've been asking around for a device running Android 8 so I'll try to reproduce if I get my hands on one 👍 |
Hello @bitttttten, Thanks for getting back to me. Interesting, so at the time of writing we can’t rule out that LogRocket is doing something strange 😕. I’ll apply for BrowserStack open source testing as soon as possible. Thank you for helping me out with this! Let’s see what we can find 👍🏻. Best, |
Hi @bitttttten, Status update Kindly, |
Ah good news. Good luck! ✨ |
Hello again @bitttttten, Thanks. BrowserStack granted me access today and I tried to reproduce this error for an hour or so without any luck. Do you have any ideas how we can proceed with this? Maybe test ideas? Thanks in advance. Best, |
Hey, good news! congrats ✨ ehh sadly not. It's just an anonymous crash report. I tried looking into it myself but it seems like a weird error. If it means anything, it was only 1 report out of 1000 users of Android 🤔 I tried to also reproduce but no luck. And I have had no body talking about it. Maybe it's okay to close the issue and then tackle it if somebody is able to reproduce! |
Hey @bitttttten, thanks! Yeah, it's certainly odd. I can't make sense of why the Thank you very much for taking time to open this issue and don't hesitate to do it again if you find a bug or have a feature request. Cheers! |
@davidcetinkaya I see this error as well on the error reporting of production logs for version 2.6. |
Hello @korsvanloon, Thank you for your thoughts. At the time of writing, no fix has been shipped for this issue because I haven't been able to reproduce it. It would be great if we could try to narrow it down. If the This issue has the Kindly, |
@bitttttten and @korsvanloon, I just did some testing and I finally understand why this is happening. If you perform a Embla only checks the event type on I'm going to be a very happy guy as soon as I can implement pointer events instead of touch and mouse separately, as soon as usage of browsers that don't support it drops, so I don't have hack my way around this. I'll let you know when I've released a patch version that fixes the issue. Best, |
Great news! Thanks a bunch! |
How did you manage to debug that? 🙈 Nice one :) |
@korsvanloon and @bitttttten, I'm happy to announce that patch version 2.7.4 ships with a fix for this issue. I'd very much appreciate if you could take a moment and do some testing so I didn't crash anything else and if you could try to reproduce the issue. Thanks in advance, |
Hello guys (@korsvanloon, @bitttttten), Are you able to verify if the patch release fixes the issue? Kindly, |
According to our testing now it seems good, but I'm waiting for the update to go live and see our error reporting for this issue to go down. |
Hi @korsvanloon, Best, |
Hello again @korsvanloon, I'm going to close this issue due to its stale status. I'd still very much appreciate if you could verify if the patch release fixes the issue for you. It would be great to reach some kind of resolution 🙂. Kindly, |
Sorry for the late response but I can confirm this is fixed :) |
Thanks @korsvanloon, cheers! |
Hey! Let me first say, loving the library so far. Very easy to get a really nice carousel with 0 config :) So thanks for the nice defaults.
I just got this error reported in my error tracking, and it leads to
embla-carousel/lib/index
.So that's
If you need some copy and paste friendly text.
Not really sure how to go from here! I was going to default value to 0 if evt.touches is not defined although that is just a hack :)
Thanks!
The text was updated successfully, but these errors were encountered: