Yoctol / react-messenger-customer-chat

React component for messenger customer chat plugin
MIT License
272 stars 69 forks source link

Update to React 17 Dependency #104

Open awitherow opened 3 years ago

awitherow commented 3 years ago
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-app@0.1.0
npm ERR! Found: react@17.0.2
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@"^0.14.0 || ^15.0.0-0 || ^16.0.0-0" from react-messenger-customer-chat@0.8.0
npm ERR! node_modules/react-messenger-customer-chat
npm ERR!   react-messenger-customer-chat@"*" 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.

i am doing with legacy peer deps right now but don't want sketch legacy stuff in my prod app.

belkocik commented 2 years ago

Yessir! same here. @chentsulin are you going to update to react 17^?

koutsosg commented 2 years ago

Looks like it works with no problem for now when npm installed with --force

bilal1031 commented 2 years ago

Looks like it works with no problem for now when npm installed with --force

I am facing the react 17 dependency issue, tried --force but node does not detect the module package.

I am using node v16 , react v17 for my current project. Kindly help me with this issue.

tokomeno commented 1 year ago

looks like it works with the latest react, can we update the peer-dependency in package.json? I'm tired of using the --legacy-peer-dep every time I install packages...