fkhadra / react-toastify

React notification made easy πŸš€ !
https://fkhadra.github.io/react-toastify/introduction
MIT License
12.33k stars 676 forks source link

🚨Version not supporitngπŸ˜•πŸš¨ for react version 18.2.0βš›οΈ #1057

Closed GantaVenkataKousik closed 4 months ago

GantaVenkataKousik commented 4 months ago

🚨I am encountering an issue with the compatibility of react-toastify and React version 18.0.2. The library documentation mentions that it should support React versions >= 16.8, but I'm experiencing problems with React 18.

πŸ˜• npm ERR! code ERESOLVE 😱 npm ERR! ERESOLVE could not resolve 🚨 npm ERR! 🚨 npm ERR! While resolving: react-toast-notifications@2.5.1 🚨 npm ERR! Found: react@18.2.0 🚨 npm ERR! node_modules/react 🚨 npm ERR! react@"^18.2.0" from the root project 🚨 npm ERR! peer react@">=16.3.0" from @emotion/core@10.3.1 🚨 npm ERR! node_modules/@emotion/core 🚨 npm ERR! @emotion/core@"^10.0.14" from react-toast-notifications@2.5.1 🚨 npm ERR! node_modules/react-toast-notifications 🚨 npm ERR! react-toast-notifications@"^2.5.1" from the root project 🚨 npm ERR! 4 more (react-dom, react-scripts, react-scroll, react-transition-group) 🚨 npm ERR! 🚨 npm ERR! Could not resolve dependency: 🚨 npm ERR! peer react@"^16.8.0 || ^17.0.0" from react-toast-notifications@2.5.1 🚨 npm ERR! node_modules/react-toast-notifications 🚨 npm ERR! react-toast-notifications@"^2.5.1" from the root project 🚨 npm ERR! 🚨 npm ERR! Conflicting peer dependency: react@17.0.2 🚨 npm ERR! node_modules/react 🚨 npm ERR! peer react@"^16.8.0 || ^17.0.0" from react-toast-notifications@2.5.1 🚨 npm ERR! node_modules/react-toast-notifications 🚨 npm ERR! react-toast-notifications@"^2.5.1" from the root project 🚨 npm ERR! 🚨 npm ERR! Fix the upstream dependency conflict, or retry 🚨 npm ERR! this command with --force or --legacy-peer-de🚨 npm ERR! 🚨 npm ERR! For a full report see: 🚨 npm ERR! C:\Users\VENKATA KOUSIK\AppData\Local\npm-cache_logs\2024-02-02T16_59_17_093Z-eresolve-report.txt

😞 npm ERR! A complete log of this run can be found in: 😞 npm ERR! C:\Users\VENKATA KOUSIK\AppData\Local\npm-cache_logs\2024-02-02T16_59_17_093Z-debug-0.log

MarekBodingerBA commented 4 months ago

You are installing a completely different package. https://www.npmjs.com/package/react-toast-notifications