Conflicting peer dependency: [email protected]

Author: chackerianCreated May 27, 2022Updated Aug 30, 2023

I'm getting this error when trying to use the package.

bash
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/typescript
npm ERR!   peerOptional typescript@"^3.2.1" from [email protected]
npm ERR!   node_modules/react-scripts
npm ERR!     react-scripts@"3.4.3" from the root project
npm ERR!     peer react-scripts@">=2.1.3" from [email protected]
npm ERR!     node_modules/react-app-rewired
npm ERR!       dev react-app-rewired@"^2.1.6" from the root project

How can I properly install this? I have tried using --force and this doesn't work either.

Source: timarney/react-app-rewired