Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GeorgeFlorian opened this issue Sep 5, 2022 · 7 comments

Comments

@GeorgeFlorian
Copy link

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
Copy link
Author

It doesn't work on React v18

@joykumarbera
Copy link

I have also the same problem with React 18

@kevin-hans
Copy link

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

@momointheworld
Copy link

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

@canmingir
Copy link

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

@psytonik
Copy link

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)

@Ansontheprogrammer
Copy link

Ansontheprogrammer commented May 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants