konvajs/react-konva-utils

React peer dependencies on react-konva and react-konva-utils

andres-palumbo opened this issue · 2 comments

First of all, thank you for such an amazing library!

I'm seeing that this library has a different React peer dependency version than react-konva:

react-konva-utils:

"react": "^17.0.2",
"react-dom": "^17.0.2"

react-konva:

"react": ">=16.8.0",
"react-dom": ">=16.8.0"

Is it an issue for you?

We can work around the issue but basically, if you want to use react-konva + react-konva-utils with react: 16.14.0 you will get a peerDependency error.

(using npm 7)

npm ERR! Found: react@16.14.0
npm ERR! node_modules/react
npm ERR!   react@"16.14.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.2" from react-konva-utils@0.2.0
npm ERR! node_modules/react-konva-utils
npm ERR!   react-konva-utils@"^0.2.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.