theanam / react-awesome-lightbox

Lightbox for react with zoom, rotate and move feature with touch support 💡📦
https://npm.im/react-awesome-lightbox
165 stars 56 forks source link

Error Decoder , in production #22

Open esraahusamia opened 1 year ago

esraahusamia commented 1 year ago

i'm using vite 3 , locally everything work fine but after build or in production

i'm facing this issue ,

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: [missing argument].[missing argument]

any suggestion to fix this issue

note : images is links from aws

**vite can't build pkg with default export

nahueltau commented 1 year ago

I "fixed it" by copying de src code into my own component and importing it from there. I'm using react 18 and vite 4.

anisharya16 commented 1 month ago

I "fixed it" by copying de src code into my own component and importing it from there. I'm using react 18 and vite 4.

same worked for me, I am using React 18