Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with react 18. #246

Open
sarthsksingh077 opened this issue Feb 19, 2024 · 6 comments
Open

Not working with react 18. #246

sarthsksingh077 opened this issue Feb 19, 2024 · 6 comments

Comments

@sarthsksingh077
Copy link

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

@the-rich-piana
Copy link

Same.

@perecollet
Copy link

same here.

@CristianDavidPonce
Copy link

same

@ghost
Copy link

ghost commented May 3, 2024

same 😭

@cike8899
Copy link

cike8899 commented May 7, 2024

same

@LiLZ4CK
Copy link

LiLZ4CK commented May 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants