react-file-viewer icon indicating copy to clipboard operation
react-file-viewer copied to clipboard

Not working with react 18.

Open sarthsksingh077 opened this issue 1 year ago • 7 comments

I am having react 18 , and i tried installing this library into my project, its throwing some error,

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] 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.6.3" from [email protected] npm ERR! node_modules/react-file-viewer npm ERR! react-file-viewer@"1.2.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-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! /Users/kmbl302870/.npm/_logs/2024-02-19T10_38_28_960Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /Users/kmbl302870/.npm/_logs/2024-02-19T10_38_28_960Z-debug-0.log

sarthsksingh077 avatar Feb 19 '24 10:02 sarthsksingh077

Same.

the-rich-piana avatar Feb 27 '24 22:02 the-rich-piana

same here.

perecollet avatar Mar 20 '24 08:03 perecollet

same

CristianDavidPonce avatar Apr 18 '24 15:04 CristianDavidPonce

same 😭

ghost avatar May 03 '24 07:05 ghost

same

cike8899 avatar May 07 '24 06:05 cike8899

try : npm i react-file-viewer --force

LiLZ4CK avatar May 13 '24 10:05 LiLZ4CK