The react-image-magnifiers package is not installing on next.js.
Error logs:
npm install --save react-image-magnifiers
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: frontend-production@0.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from react-image-magnifiers@1.4.0
npm ERR! node_modules/react-image-magnifiers
npm ERR! react-image-magnifiers@"*" 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! See /home/haseeb/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/haseeb/.npm/_logs/2022-01-10T10_13_10_727Z-debug-0.log
You may give me write permission so I will push with the updated version of react. I've already tested the magnifiers by updating react to 17.0.2. And working fine. OR you may do it yourself. Pls proceed with it. I need this library in next.js to work.
Fix: just added the --force flag and it installed ;)
The react-image-magnifiers package is not installing on next.js. Error logs:
You may give me write permission so I will push with the updated version of react. I've already tested the magnifiers by updating react to 17.0.2. And working fine. OR you may do it yourself. Pls proceed with it. I need this library in next.js to work.
Fix: just added the
--force
flag and it installed ;)