eiriklv / react-masonry-component

A React.js component for using @desandro's Masonry
MIT License
1.43k stars 145 forks source link

Support React 18 #168

Open Memo99 opened 2 years ago

Memo99 commented 2 years ago

npm ERR! Could not resolve dependency: npm ERR! peer react@"^0.14.0 || ^15.0.0-0 || ^16.0.0-0 || ^17.0.0" from react-masonry-component@6.3.0 npm ERR! node_modules/react-masonry-component npm ERR! react-masonry-component@"^6.3.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: react@17.0.2 npm ERR! node_modules/react npm ERR! peer react@"^0.14.0 || ^15.0.0-0 || ^16.0.0-0 || ^17.0.0" from react-masonry-component@6.3.0 npm ERR! node_modules/react-masonry-component npm ERR! react-masonry-component@"^6.3.0" from the root project

ismael-razz commented 1 year ago

Bump on this comment. Tried deploying through netlify and am getting the same error response.

mmichaa commented 11 months ago

In the meanwhile you could use this as a workaround in your package.json file:

  # …
  "overrides": {
    "react-masonry-component": {
      "react": "^0.14.0 || ^15.0.0-0 || ^16.0.0-0 || ^17.0.0 || ^18.0.0"
    }
  },
  # …