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

Failure to install Sweetalert React package #1000

Open
tomasantunes opened this issue Jan 20, 2023 · 2 comments
Open

Failure to install Sweetalert React package #1000

tomasantunes opened this issue Jan 20, 2023 · 2 comments

Comments

@tomasantunes
Copy link

When I try to install the package @sweetalert/with-react I get the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: test1@0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.x.x" from @sweetalert/with-react@0.1.1
npm ERR! node_modules/@sweetalert/with-react
npm ERR!   @sweetalert/with-react@"*" 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.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /home/user1/.npm/_logs/2023-01-20T19_48_50_781Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user1/.npm/_logs/2023-01-20T19_48_50_781Z-debug-0.log

Steps to reproduce:

npx create-react-app test1
cd test1
npm install --save @sweetalert/with-react
@tomasantunes tomasantunes changed the title Failure to install React package Failure to install Sweetalert React package Jan 20, 2023
@zouyaowen
Copy link

zouyaowen commented Jan 20, 2023 via email

@daenerys973
Copy link

I have error install on next 13.4 about react 18

npm i @sweetalert/with-react

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: todoapp@0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.x.x" from @sweetalert/with-react@0.1.1
npm ERR! node_modules/@sweetalert/with-react
npm ERR! @sweetalert/with-react@"*" 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.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2023-07-31T16_36_07_917Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2023-07-31T16_36_07_917Z-debug-0.log

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

3 participants