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

Could not resolve dependency with React 18

Open AnastasiiaBardyuzha opened this issue 2 years ago • 30 comments

I tried to install mui-datatables. And I caught error:

npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"18.0.0" from the root project npm ERR! peer react@">=16.8.0" from @emotion/[email protected] npm ERR! node_modules/@emotion/react npm ERR! @emotion/react@"11.9.0" from the root project npm ERR! peer @emotion/react@"^11.4.1" from [email protected] npm ERR! node_modules/mui-datatables npm ERR! mui-datatables@"" from the root project npm ERR! 2 more (@mui/material, @emotion/styled) npm ERR! 4 more (@mui/icons-material, @mui/material, @emotion/styled, react-dom) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0 || ^17.0.2" from [email protected] npm ERR! node_modules/mui-datatables npm ERR! mui-datatables@"" from the root project

Tech Version
Material-UI 5.5.2
MUI-datatables 4.2.2
React 18.0.0

AnastasiiaBardyuzha avatar Apr 27 '22 12:04 AnastasiiaBardyuzha

same problem

fabianmeneses56 avatar May 02 '22 17:05 fabianmeneses56

same problem too

jasonwee avatar May 07 '22 13:05 jasonwee

same problem too

dayron9408 avatar May 11 '22 01:05 dayron9408

same problem too

it workerd for me using npm install mui-datatables --save --legacy-peer-deps

dayron9408 avatar May 11 '22 01:05 dayron9408

same problem

npm install mui-datatables --save --legacy-peer-deps

dayron9408 avatar May 11 '22 01:05 dayron9408

Same problem for me, unfortunately. I'm considering MUIX's built-in <DataGrid /> component

@dayron9408 --legacy-peer-deps can potentially lead to inconsistent dependency tree:

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.

parzhitsky avatar May 13 '22 17:05 parzhitsky

Are there plans to upgrade to React 18?

thetaPC avatar Jun 02 '22 19:06 thetaPC

I have the same problem. I'll use --legacy-peer-deps to start a project but I hope this issue will be solved in the future release.

https://ibb.co/SxGdzsq

Marko351 avatar Jun 03 '22 13:06 Marko351

Same issue, on deployment...

TalhaAmjad0034 avatar Jun 10 '22 07:06 TalhaAmjad0034

same problem too

MGH1024 avatar Jun 13 '22 13:06 MGH1024

same problem

dmachibya avatar Jun 13 '22 21:06 dmachibya

Same issue, are you planning a react 18 upgrade?

danieljmann96 avatar Jun 15 '22 22:06 danieljmann96

I've changed my version to 17.0.2 and that error has resolved.

TalhaAmjad0034 avatar Jun 16 '22 12:06 TalhaAmjad0034

Same problem

jsnavarroc avatar Jul 08 '22 15:07 jsnavarroc

Facing the same issue

ShetGanesh avatar Jul 18 '22 12:07 ShetGanesh

same here

MiKaminskas avatar Aug 01 '22 12:08 MiKaminskas

Facing same issue with React 18. Any plan to upgrade the dependency tree of this package ?

Abam avatar Aug 08 '22 10:08 Abam

same!

ronbeilinson avatar Sep 14 '22 15:09 ronbeilinson

Same, please upgrade! <3

mvandoff-avi avatar Sep 15 '22 16:09 mvandoff-avi

Bump ^^

wickedvic avatar Sep 28 '22 07:09 wickedvic

running into the same issue

harryd31 avatar Oct 22 '22 19:10 harryd31

same issue. please upgrade

shafiq-techmentors avatar Oct 31 '22 21:10 shafiq-techmentors

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.

i need some solution

Eliot27 avatar Nov 01 '22 05:11 Eliot27

Hey! Facing same issue while using React 18, with mui-datatables: 4.2.2, mui: 5.10.15 using npm install --legacy-peer-deps for now. Any plans to upgrade?

ashwin-07 avatar Nov 23 '22 13:11 ashwin-07

+1

YannickFuereder avatar Dec 13 '22 10:12 YannickFuereder

if anyone find this, upgrade mui-datatables to 4.3.0 will be ok

MuLoo avatar Jan 16 '23 04:01 MuLoo

if anyone find this, upgrade mui-datatables to 4.3.0 will be ok

nope i have mui-datatables: 4.3.0 with mui: 5.11.13

Same problem

johnpipi avatar Mar 14 '23 23:03 johnpipi

yeah I have the same problem.. only noticed this when I tried to sandbox my app to figure out some of its problems.

does this only work with React 17.0.0 ~ 17.0.2?

gbowne1 avatar Apr 05 '23 07:04 gbowne1

Same problem

jelsabird avatar Aug 15 '23 12:08 jelsabird

Still a problem, seems all MUI library not using React 18 not just the datatable. The table still work though, haven't see any issue beside installation so far.

stefanus-ricky avatar Aug 29 '23 03:08 stefanus-ricky