react-email-editor icon indicating copy to clipboard operation
react-email-editor copied to clipboard

Broken peer dependency with React 18

Open daffron opened this issue 3 years ago • 4 comments

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@"15.x || 16.x || 17.x" from [email protected]
npm ERR! node_modules/react-email-editor
npm ERR!   react-email-editor@"^1.6.0" from the root project

daffron avatar Jun 09 '22 13:06 daffron

This worked for me. Add this to your package.json:

"peerDependencies": { "react": "15.x || 16.x || 17.x || 18.x" },

Not ideal, but works...

redasys avatar Jun 21 '22 16:06 redasys

@redasys thx for the tips, when you say "package.json", are you speaking about local package.json project or react-email-editor one ? I've tried both without luck.

eviltik avatar Jul 01 '22 07:07 eviltik

@adeelraza hi, is it possible to release a version for react 18 ? ty

eviltik avatar Jul 04 '22 07:07 eviltik

Unfortunately, i had to downgrade the react and react-dom to v17 and it works fine.

arunkp avatar Aug 27 '22 06:08 arunkp

This should be resolved now.

adeelraza avatar Oct 27 '22 01:10 adeelraza