eiriklv/react-masonry-component

Support React 18

Memo99 opened this issue · 2 comments

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

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

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"
    }
  },
  #