Closed davidgoldcode closed 3 years ago
I ran into this same problem in NextJs. At least for now you will need to import this component like so:
const ResponsiveGallery = dynamic( () => import('react-responsive-gallery'), { ssr: false } );
from the docs: https://nextjs.org/docs/advanced-features/dynamic-import#with-no-ssr
thanks @joebImagine ! @davidgoldcode I close this issue since we have a solution , if you have any other issues please open another issue,tnx.
I ran into this same problem in NextJs. At least for now you will need to import this component like so:
const ResponsiveGallery = dynamic( () => import('react-responsive-gallery'), { ssr: false } );
from the docs: https://nextjs.org/docs/advanced-features/dynamic-import#with-no-ssr
Ran into this exact same issue and this solved it. Thanks :)
hi @davidgoldcode You right, currently the library don't support SSR
If you want you could open an MR and I will love to support that.