Open SarkorbekA opened 3 months ago
Same here
This happens because using defineProperty with only a getter makes it immutable. I think this is an issue with the build system.
I tried to build the code using v21.7.1 and it produces a different output. I am not sure which version the code authors used.
I had to build it myself using the latest node version. hope this gets fixed soon (build using a latest node version import from the lib folder)
My team had this issue after regenerating the package-lock.json
file during updating unrelated dependency
Our workaround is to downgrade to v2.2.0 and make it strict in package.json
terminal:
npm i react-responsive-masonry@2.2.0
package.json:
- "react-responsive-masonry": "^2.2.0",
+ "react-responsive-masonry": "2.2.0",
same issue, v2.2.1 works without issues
Regardless of the above, I wonder why a ResponsiveMasonry
wrapper component is necessary when the Masonry
component itself could be coded to accept a breakpoint object or breakpoint array instead of a number for columnCount
(or as another prop) and simply make itself responsive based on it. 😆
i can't understand, what is the problem?