enzyme-adapter-react-17 icon indicating copy to clipboard operation
enzyme-adapter-react-17 copied to clipboard

Conflicting peer dependency `react@"^17.0.0-0"`

Open k-funk opened this issue 1 year ago • 1 comments

npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"^17.0.0-0" from @wojtekmaj/[email protected]
npm ERR!   node_modules/@wojtekmaj/enzyme-adapter-react-17
npm ERR!     dev @wojtekmaj/enzyme-adapter-react-17@"^0.6.7" from the root project
$ node --version
v18.0.0
$ npm --version
8.6.0

My guess is that this is happening due to the -0 on ^17.0.0-0. Can that be dropped?

k-funk avatar Jul 29 '22 20:07 k-funk

That should be a perfectly valid version as per NPM's own tooling.

obraz

Which version or React are you using?

wojtekmaj avatar Aug 01 '22 09:08 wojtekmaj