react-draft-wysiwyg icon indicating copy to clipboard operation
react-draft-wysiwyg copied to clipboard

npm ERR! ERESOLVE unable to resolve dependency tree

Open SultanHboush opened this issue 3 years ago • 7 comments
trafficstars

I can't install the library it gives the following error I don't why!

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.1.0" from the root project
npm ERR!   peer react@">=0.14.0" from [email protected]
npm ERR!   node_modules/draft-js
npm ERR!     draft-js@"^0.11.7" from the root project
npm ERR!     peer draft-js@"^0.10.x || ^0.11.x" from [email protected]
npm ERR!     node_modules/react-draft-wysiwyg
npm ERR!       react-draft-wysiwyg@"*" from the root project
npm ERR!   1 more (react-dom)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"0.13.x || 0.14.x || ^15.0.0-0 || 15.x.x || ^16.0.0-0 || ^16.x.x || ^17.x.x" from [email protected]
npm ERR! node_modules/react-draft-wysiwyg
npm ERR!   react-draft-wysiwyg@"*" 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 /Users//.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users//.npm/_logs/2022-06-15T06_41_29_393Z-debug-0.log

SultanHboush avatar Jun 15 '22 06:06 SultanHboush

@jpuri

SultanHboush avatar Jun 18 '22 10:06 SultanHboush

did you solve the issue? if yess can you share it?

OssmanRauf avatar Jun 20 '22 14:06 OssmanRauf

@TheBossmanLab till now no !! please if you find something, or if you know something alternative share it with me.

SultanHboush avatar Jun 20 '22 18:06 SultanHboush

well you can force npm to install it enyway but even then youll get a problem, im not sure but i think this WYSIWYG editor is using an old version of react and thats the problem i dont know how to solve

OssmanRauf avatar Jun 20 '22 18:06 OssmanRauf

@TheBossmanLab yes I tried force nom, but still I faced problems later !!

SultanHboush avatar Jun 22 '22 14:06 SultanHboush

Hi! Does anyone reach to the solution of this?

theterrificm avatar Jun 28 '22 20:06 theterrificm

Run npm install react-draft-wysiwyg --force . This worked for me in the meantime

TheGitPanda avatar Jul 01 '22 17:07 TheGitPanda

hello, i may be late but hope this helps out . Rum npm install --legacy-peer-deps react-draft-wysiwyg

sandaji avatar Dec 25 '22 08:12 sandaji