I have already tried this "npm cache clean --force".
If you know another way of implementing a feature that allows users to download the webpage as a pdf, please let me know how.
This is the error I get when running "npm install react-to-pdf":
` 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.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! npm ERR! For a full report see: npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2023-03-02T18_55_48_074Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2023-03-02T18_55_48_074Z-debug-0.log `
I tried this: npm cache clean --force
Try :
npm install react-to-pdf --force
npm install [email protected]