react-transition-group icon indicating copy to clipboard operation
react-transition-group copied to clipboard

Error when running npm install

Open mkelley33 opened this issue 3 years ago • 2 comments

What is the current behavior?

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   dev react@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from @restart/[email protected]
npm ERR! node_modules/@restart/hooks
npm ERR!   dev @restart/hooks@"^0.3.22" 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 resoluti```

> What is the expected behavior?

That it cleanly installs

> Could you provide a [CodeSandbox](https://codesandbox.io/) demo reproducing the bug?

No, it happens at install time

mkelley33 avatar Jun 25 '22 00:06 mkelley33

This seems to be caused by the @restart/hooks package, not react-transition-group. I think you should update @restart/hooks to v0.3.26 or later versions. https://github.com/react-restart/hooks/blob/master/CHANGELOG.md#0326-2021-01-05

koba04 avatar Jul 22 '22 13:07 koba04

So I updated to v0.3.26 of @restart/hooks, but it still choked on storybook/[email protected] so I ran npm install --legacy-peer-deps and that seemed to allow it to install just fine. Then I was able to run npm run storybook. @koba04 Should I put in a PR to capture all of this?

mkelley33 avatar Jul 23 '22 02:07 mkelley33