gregnb / mui-datatables

Datatables for React using Material-UI
MIT License
2.7k stars 931 forks source link

Package not compatible with new versions of Node / npm / React #1741

Open damianwojcik opened 3 years ago

damianwojcik commented 3 years ago

Hey.

Getting error after updating my version of Node and React while using npm i mui-datatables:

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   peer react@"^16.11.0 || ^17" from @auth0/auth0-react@1.5.0
npm ERR!   node_modules/@auth0/auth0-react
npm ERR!     @auth0/auth0-react@"^1.5.0" from the root project
npm ERR!   peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.11.4
npm ERR!   node_modules/@material-ui/core
npm ERR!     peer @material-ui/core@"^4.0.0" from @material-ui/icons@4.11.2
npm ERR!     node_modules/@material-ui/icons
npm ERR!       @material-ui/icons@"^4.11.2" from the root project
npm ERR!       1 more (mui-datatables)
npm ERR!     peer @material-ui/core@"^4.9.10" from @material-ui/lab@4.0.0-alpha.58
npm ERR!     node_modules/@material-ui/lab
npm ERR!       @material-ui/lab@"^4.0.0-alpha.58" from the root project
npm ERR!     2 more (the root project, mui-datatables)
npm ERR!   20 more (@material-ui/icons, @material-ui/lab, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.3.0" from react-sortable-tree@2.8.0
npm ERR! node_modules/mui-datatables/node_modules/react-sortable-tree
npm ERR!   react-sortable-tree@"^2.7.1" from mui-datatables@3.7.7
npm ERR!   node_modules/mui-datatables
npm ERR!     mui-datatables@"*" from the root project
npm ERR!
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.
Tech Version
Material-UI 4.11.4
MUI-datatables 3.7.7
React 17.0.2
browser Chrome
node 16.3.0
npm 18.18.1
keepevets commented 3 years ago

i found that running npm install react-sortable-tree --save before installing mui-datatables fixes this

skalma commented 3 years ago

same problem here: on updating npm to version 7.21.0 and node.js to 14.17.5 the command npm update suddenly produced ERESOLVE error:

PS C:\Users\skalm\source\vscode\skapps-drawer> npm update
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: skapps-drawer@1.0.18
npm ERR! Found: @material-ui/core@4.12.3
npm ERR! node_modules/@material-ui/core
npm ERR!   dev @material-ui/core@"^4.12.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @material-ui/core@"^3.2.0" from mui-datatables@2.15.0
npm ERR! node_modules/mui-datatables
npm ERR!   peer mui-datatables@"^2.11.1" from skapps-datatools@1.0.43
npm ERR!   node_modules/skapps-datatools
npm ERR!     peer skapps-datatools@"^1.0.0" from the root project
npm ERR!
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.
npm ERR!
npm ERR! See C:\Users\skalm\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\skalm\AppData\Local\npm-cache\_logs\2021-08-24T13_16_07_471Z-debug.log

react: 16.9.0 mui-datatables: 3.7.8 material-ui: 4.12.3

juanjoman commented 2 years ago

Same issue here:

react: 17.0.2 mui-datatables: 3.7.8 material-ui: 4.12.1 npm: 7.19.1 node: 16.2