cedricdelpoux / react-responsive-masonry

React responsive masonry component built with css flexbox
https://cedricdelpoux.github.io/react-responsive-masonry/
MIT License
362 stars 37 forks source link

Cannot resolve dependency 'prop-types' with react 17.0 #35

Open junip opened 3 years ago

junip commented 3 years ago

Build is failing with the recent updated version - version - 2.1.2

metalmatze commented 2 years ago

Hey, any ideas how to move forward with this aka using newer version than React v16?

metalmatze commented 2 years ago

For now I've "fixed" the issue by npm i prop-types and it seems fine.

AurelianSpodarec commented 11 months ago

Can this not be fixed via the library so we don't have to do that ourselves?

But also didn't seem like that solved for me:

Server Error
Error: Cannot read properties of undefined (reading 'prototype')

This error happened while generating the page. Any console logs will be displayed in the terminal window.
⨯ node_modules\react-responsive-masonry\lib\Masonry\index.js (14:94) @ prototype
 ⨯ TypeError: Cannot read properties of undefined (reading 'prototype')
lucasartsfr commented 3 months ago

Problem is still there, even with nextjs. Any fix ?

louiechristie commented 3 months ago

I abandoned this dependency and used css grid instead.