Open lewebsimple opened 2 years ago
I was having a strange probleme where FsLighbox would only work in development mode using Vite to build the project.
FsLighbox
It turns out importing from fslightbox-vue/v3 was returning the component on the default property, so I had to do this:
fslightbox-vue/v3
default
import FsLightboxV3 from "fslightbox-vue/v3"; const FsLightbox = FsLightboxV3.default || FsLightboxV3;
Any idea ?
Same here...
Thanks for providing a solution to this! I had the same issue.
I had the same. @lewebsimple Thx for your solution. I thought that it can be fixed by optimizeDeps, but it doesn't work for me :(
I was having a strange probleme where
FsLighbox
would only work in development mode using Vite to build the project.It turns out importing from
fslightbox-vue/v3
was returning the component on thedefault
property, so I had to do this:Any idea ?