Create-react-app: Immer dependency in react-dev-utils is outdated and needs to be updated

Created on 30 Mar 2020  路  3Comments  路  Source: facebook/create-react-app

Describe the bug

The react-dev-utils package currently depends on [email protected]:

https://github.com/facebook/create-react-app/blob/edc671eeea6b7d26ac3f1eb2050e50f75cf9ad5d/packages/react-dev-utils/package.json#L68

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:

https://github.com/reduxjs/redux-toolkit/issues/459

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.

underlying tools

Most helpful comment

ping

All 3 comments

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

ping

Fixed in #8933

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alleroux picture alleroux  路  3Comments

onelson picture onelson  路  3Comments

barcher picture barcher  路  3Comments

ap13p picture ap13p  路  3Comments

rdamian3 picture rdamian3  路  3Comments