react-to-pdf
react-to-pdf copied to clipboard
Could not resolve dependency: npm ERR! peer react@"^16.5.2" from [email protected]
I am also experiencing this issue.
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@"^17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.5.2" from [email protected]
npm ERR! node_modules/react-to-pdf
npm ERR! react-to-pdf@"*" from the root project```
What version of react are you guys using?
Maybe try using the newest version of react-to-pdf (0.0.14
)
I get the same error while trying to install the Version 0.0.14 of react to pdf
@Smartmikey what version of react are you using?
I'm having the same problem, using React 17.0.1
@Givo29 I'm using React version 17.0.1
Bump on this! Using React 17.0.2
I'm having the same issue while working with React 17.0.2
Same for me with React 18.0.0
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.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.5.2" from [email protected]
npm ERR! node_modules/react-to-pdf
npm ERR! react-to-pdf@"*" 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 C:\Users\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\AppData\Local\npm-cache\_logs\2022-04-18T04_27_36_415Z-debug.log
any fix yet? im having same issue
The fix for this issue would be to update the package.json file for this project itself.
The workaround would be to npm i --legacy-peer-deps
which will cause npm to install this and its peer dependencies (in this case React 16.5.2) it's not ideal, but it works.
v1 has been released supporting react > 16.8