This package doesn't seem to work with the most recent Next JS 14 version even in a client component. Just loading the default code brings up these errors in the console:
Internal error: ReferenceError: window is not defined
at useWindowWidth (../node_modules/react-responsive-masonry/es/ResponsiveMasonry/index.js:28:68)
at MasonryResponsive (../node_modules/react-responsive-masonry/es/ResponsiveMasonry/index.js:60:21)
This package doesn't seem to work with the most recent Next JS 14 version even in a client component. Just loading the default code brings up these errors in the console: