banthagroup / fslightbox-react

Basic version of Fullscreen Lightbox for React.js. Website: https://fslightbox.com/react
MIT License
169 stars 23 forks source link

Invalid source when file type is WebP #152

Closed dmorda closed 4 years ago

dmorda commented 4 years ago

I'm trying to use fslightbox in combination with Sanity.io. However, when I use the images generated by it, I get an invalid source error in the lightbox. The easiest way to reproduce is to use the following image as an example.

https://cdn.sanity.io/images/2pnwyrpr/production/b58831db14f6f1c29c82308860230b30e0f1651b-2066x1528.jpg

Any idea if I can workaround this?

dmorda commented 4 years ago

False alarm, if I add type="image" as a prop, all works as expected.