react-email-editor
react-email-editor copied to clipboard
Broken peer dependency with React 18
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
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 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.
@adeelraza hi, is it possible to release a version for react 18 ? ty
Unfortunately, i had to downgrade the react and react-dom to v17 and it works fine.
This should be resolved now.