gregnb / gregnb/mui-datatables

Could not resolve dependency with React 18

Open
#1,916 30 comments 18 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

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 |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the npm install using React 18.0.0, Material-UI 5.5.2, and mui-datatables 4.2.2, then inspect the dependency and peer-dependency requirements reported in the error. Done means the package installs successfully with React 18 without a dependency-resolution error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.