wojtekmaj / enzyme-adapter-react-17

Unofficial adapter for React 17 for Enzyme.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

k-funk opened this issue · comments

npm ERR! Conflicting peer dependency: react@17.0.2
npm ERR! node_modules/react
npm ERR!   peer react@"^17.0.0-0" from @wojtekmaj/enzyme-adapter-react-17@0.6.7
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?

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

obraz

Which version or React are you using?