t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.4k stars 2.85k forks source link

Failure to install Sweetalert React package #1000

Open tomasantunes opened 1 year ago

tomasantunes commented 1 year ago

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
zouyaowen commented 1 year ago
  Your email is received and will be handled  as soon as possible,and this is an automatic reply,I will respond to your message  immediately when I see it.Thank you.
daenerys973 commented 11 months ago

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