Closed tomavic closed 1 year ago
✗ npm i -D @testing-library/react-hooks npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: myapp-tracker@0.0.0 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! react@"18.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.9.0 || ^17.0.0" from @testing-library/react-hooks@8.0.1 npm ERR! node_modules/@testing-library/react-hooks npm ERR! dev @testing-library/react-hooks@"8.0.1" 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. npm ERR!
react-hooks-testing-library
react
react-dom
react-test-renderer
node
npm
yarn
trying to install it with the mentioned version above.
Check the terminal log above.
https://github.com/testing-library/react-hooks-testing-library#a-note-about-react-18-support
react-hooks-testing-library
version: 13.4.0react
version: 18.2react-dom
version (if applicable): 18.2react-test-renderer
version (if applicable):node
version: 16.15.1npm
(oryarn
) version: 7.6.3What you did:
trying to install it with the mentioned version above.
What happened:
Check the terminal log above.