Closed multipliedtwice closed 9 months ago
When are you seeing this? When you first load the page? When you try to open a gallery?
It's going to be very difficult to troubleshoot without a reproduction.
Hello, when opening a gallery. It happens randomly, sometimes even on consequent open.
It's some edge case because I also can't reproduce it locally. It appears only in prod.
Could you hardcode undefined as an input value and suppress the error?
Have you tried disabling rocket loader? Or excluding your bigger-picture / bundle script?
We can't have activeItem
fall back to undefined because it's relied upon in many other parts of the library. As long as the items are valid it should fall back to being the first item.
If it's only happening in production there must be something unique to the production environment that's breaking it.
Sorry this closed automatically because of commits that referenced it. I don't think the issue is caused by the library but if you still want help figuring it out, let me know.
Line 65 throws an error. Maybe because of cloudflare rocket loader, not sure. But sometimes activeItem is undefined