niuware / mui-rte

Material-UI Rich Text Editor and Viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work with React ^18.2.0

DewangS opened this issue · comments

commented

Checklist

Description

Im using React 18.2.0 and unable to install this package due to conflicting dependencies

npm install mui-rte
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: thank-you-cards-new@0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR! peer react@"^17.0.0 || ^18.0.0" from @mui/icons-material@5.11.11

npm ERR! node_modules/@mui/icons-material
npm ERR! @mui/icons-material@"^5.10.6" from the root project
npm ERR! peer @mui/icons-material@"^5.0.0" from mui-rte@2.0.1

npm ERR! node_modules/mui-rte
npm ERR! mui-rte@"" from the root project
npm ERR! 4 more (@mui/material, @emotion/react, @emotion/styled, react-dom)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.0" from @mui/styles@5.11.11
npm ERR! node_modules/@mui/styles
npm ERR! peer @mui/styles@"^5.0.0" from mui-rte@2.0.1
npm ERR! node_modules/mui-rte

npm ERR! mui-rte@"
" from the root project

commented

@DewangS What node version do you use?

commented

@EugeneNikulnikov
node v16.14.2

commented

@EugeneNikulnikov

Later I gave up pretty much on various NPM packages e.g. slate etc and just wrote my own little editor as I only needed entire text within multiline text to be Bold, Italic or underlined. I also needed user option to choose text color and font size.

facing similar issue

Any other similar alternatives?

Also having this issue. Other libraries I've found are also out of date.

As a temporary solution you can do:
npm install mui-rte --save --legacy-peer-deps