gregnb / gregnb/mui-datatables

yarn dependency warning with react@17.0.2 and mui-datatables

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

Description

I am getting the following warning when using yarn:
```
➤ YN0060: │ nathanael@workspace:. provides react (pd2ae2) with version 17.0.2, which doesn't satisfy what mui-datatables and some of its descendants request
```

```
>yarn why mui-datatables
└─ nathanael@workspace:.
└─ mui-datatables@npm:4.0.0 [017b0] (via npm:^4.0.0 [017b0])
```

## Expected Behavior

I expected no yarn warnings

## Current Behavior

I am getting the following warning when using yarn:
```
➤ YN0060: │ nathanael@workspace:. provides react (pd2ae2) with version 17.0.2, which doesn't satisfy what mui-datatables and some of its descendants request
```
```
>yarn why mui-datatables
└─ nathanael@workspace:.
└─ mui-datatables@npm:4.0.0 [017b0] (via npm:^4.0.0 [017b0])
```

But AFAICT I'm using the latest mui-datatables which lists react@17.0.2 in its package.json:
```
"react": "^17.0.2",
```

## Steps to Reproduce (for bugs)

1.
2.
3.
4.

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 5.4.1 |
| MUI-datatables | 4.0.0 |
| React | 17.0.2 |
| browser | (electron 4.1.3) |
| etc | |

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the dependency declarations in package.json and reproduce the warning with the reported React 17.0.2 and mui-datatables 4.0.0 versions using Yarn. Determine which dependency range triggers YN0060; done means the reported installation no longer emits this warning without breaking the listed environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.