react-chat-widget icon indicating copy to clipboard operation
react-chat-widget copied to clipboard

NPM peer error when using React v18 - npm ERR! Could not resolve dependency:

Open GeorgeFlorian opened this issue 2 years ago • 7 comments

My project uses react@"^18.2.0", and I get the following error: npm ERR! Could not resolve dependency: peer react@"^17.0.2" from [email protected] when trying to install this package.

Should I install it by force or maybe a bump in React version is coming in a future update ?

GeorgeFlorian avatar Sep 05 '22 14:09 GeorgeFlorian

It doesn't work on React v18

GeorgeFlorian avatar Sep 05 '22 16:09 GeorgeFlorian

I have also the same problem with React 18

joykumarbera avatar Sep 19 '22 18:09 joykumarbera

I have the same problem. could someone give me advices?

kevin-hans avatar Oct 06 '22 12:10 kevin-hans

I also have "react": "^18.2.0". I just used $ npm install --save react-chat-widget --legacy-peer-deps

momointheworld avatar Nov 06 '22 02:11 momointheworld

When I install with --legacy-peer-deps, it worked on my local, but it wasn't able to build later on

canmingir avatar Jan 16 '23 00:01 canmingir

i get error when i installed dep with --legacy-peer-deps error - ReferenceError: self is not defined at Object. (/Users/myproject/node_modules/react-chat-widget/lib/index.js:1:333)

psytonik avatar Jan 28 '23 10:01 psytonik

i get error when i installed dep with --legacy-peer-deps error - ReferenceError: self is not defined at Object. (/Users/myproject/node_modules/react-chat-widget/lib/index.js:1:333)

I just ran into the same issue and I was using React 17

Ansontheprogrammer avatar May 15 '23 00:05 Ansontheprogrammer