π¨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
π¨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