mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

Please update to react 18

Open EssDevUi opened this issue 2 years ago • 5 comments

Could not resolve dependency: npm ERR! peer react@"^16.8.0 || ^17.0.2" I'm getting this error while installing mui 4.2.2 with latest version of react js "react": "^18.2.0", please update your peer dependency

EssDevUi avatar Oct 11 '22 07:10 EssDevUi

ugh. ditto. any workarounds?

skavan avatar Oct 21 '22 15:10 skavan

Here is a workaround, add this to your package.json just below the dependencies section:

"overrides": {
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "@mui/material": "^5.10.11"
}

Adjust for your actual versions of course :)

sp00ls avatar Oct 26 '22 21:10 sp00ls

Here is a workaround, add this to your package.json just below the dependencies section:

"overrides": { "react": "^18.2.0", "react-dom": "^18.2.0", "@mui/material": "^5.10.11" } Adjust for your actual versions of course :)

This worked great!

pintosack avatar Nov 02 '22 12:11 pintosack

Hi @sp00ls thanks for the info One small note the npm version for this to work should be greater then 8.3

shree1999 avatar Nov 08 '22 07:11 shree1999

Here is a workaround, add this to your package.json just below the dependencies section:

"overrides": { "react": "^18.2.0", "react-dom": "^18.2.0", "@mui/material": "^5.10.11" } Adjust for your actual versions of course :)

Perfect solution, thanks!

dreambold avatar Apr 25 '23 09:04 dreambold