-
-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Closed
Labels
Milestone
Description
Describe the bug
The react-dev-utils package currently depends on [email protected]:
| "immer": "1.10.0", |
That version is extremely outdated, since Immer is now at v6.x:
https://github.com/immerjs/immer/releases
Since many apps now use Immer (including those built with Redux Toolkit), this can lead to multiple versions of Immer being included in node_modules. In at least one instance, it resulted in a weird situation where the RTK-requested immer@6 dependency was nested while the react-dev-utils-requested [email protected] version was hoisted, and then TS failed to compile the user's project:
Given that Immer's API has basically stayed the same and that it's only being used in one spot in react-dev-utils, this should be an easy upgrade.
petetnt, phryneas, mariokaufmann, Pacific112, wgolledge and 4 more