gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.71k stars 932 forks source link

Could not resolve dependency with React 18 #1916

Open AnastasiiaBardyuzha opened 2 years ago

AnastasiiaBardyuzha commented 2 years ago

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

npm ERR! Found: react@18.0.0 npm ERR! node_modules/react npm ERR! react@"18.0.0" from the root project npm ERR! peer react@">=16.8.0" from @emotion/react@11.9.0 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 mui-datatables@4.2.2 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 mui-datatables@4.2.2 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
fabianmeneses56 commented 2 years ago

same problem

jasonwee commented 2 years ago

same problem too

dayron9408 commented 2 years ago

same problem too

dayron9408 commented 2 years ago

same problem too

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

dayron9408 commented 2 years ago

same problem

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

parzhitsky commented 2 years ago

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.
thetaPC commented 2 years ago

Are there plans to upgrade to React 18?

Marko351 commented 2 years ago

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

TalhaAmjad0034 commented 2 years ago

Same issue, on deployment...

MGH1024 commented 2 years ago

same problem too

dmachibya commented 2 years ago

same problem

danieljmann96 commented 2 years ago

Same issue, are you planning a react 18 upgrade?

TalhaAmjad0034 commented 2 years ago

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

jsnavarroc commented 2 years ago

Same problem

ShetGanesh commented 2 years ago

Facing the same issue

MiKaminskas commented 2 years ago

same here

Abam commented 2 years ago

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

ronbeilinson commented 2 years ago

same!

mvandoff-avi commented 2 years ago

Same, please upgrade! <3

wickedvic commented 2 years ago

Bump ^^

harryd31 commented 2 years ago

running into the same issue

shafiq-techmentors commented 1 year ago

same issue. please upgrade

Eliot27 commented 1 year ago
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

ashwin-07 commented 1 year ago

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?

YannickFuereder commented 1 year ago

+1

MuLoo commented 1 year ago

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

johnpipi commented 1 year ago

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

gbowne1 commented 1 year ago

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?

jelsabird commented 1 year ago

Same problem

stefanus-ricky commented 1 year ago

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.