react-checkbox-tree
react-checkbox-tree copied to clipboard
Package not getting installed for react version 17.0.1
Describe the bug I have react version as 17.0.1 and this package is not getting installed. This is the error npm WARN ERESOLVE overriding peer dependency npm WARN Found: [email protected] npm WARN node_modules/react npm WARN react@"^17.0.1" from the root project npm WARN npm WARN Could not resolve dependency: npm WARN peer react@"^15.3.0 || ^16.0.0" from [email protected] npm WARN node_modules/react-checkbox-tree npm WARN react-checkbox-tree@"*" from the root project npm ERR! code ENOENT npm ERR! syscall chmod
Reproduction steps
- create new react project. Make sure react version is 17.
- Try installing this package
Expected behavior Should be able to install the package on latest version as well
Screenshots If applicable, add screenshots to help explain your problem.
Hmm. I cannot recreate this issue. If I create create a new project and run the following, I get no errors:
yarn add react react-dom react-checkbox-tree
This installs the latest React and latest checkbox tree component. There are some peer dependency warnings because this component has not been tested against React 17 (since Enzyme does not yet support it) but I see no errors.
Can you recreate a minimal project for me to clone that recreates this? Also, are you running the latest version of npm?
I now see that npm
will emit an error but yarn
will not.
As noted above, the project has not been tested with React 17 due to Enzyme not supporting itjust yet. I have been leery on adding React 17 to the peerDependencies without Enzyme providing an official adapter. Nonetheless, in my unofficial testing with React 17, I have not noticed any issues. Thus, I will likely release a small update allow for React 17 in the peerDependencies.
Resolved in 79f8b3f92876815f3b7ddef1b062b21136fbd2f8. Will push a version alter.
Ran into the same problem -- npm install
is failing with:
...
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"~17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.3.0 || ^16.0.0" from [email protected]
npm ERR! node_modules/react-checkbox-tree
npm ERR! react-checkbox-tree@"~1.6.0" from the root project
...