You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 immer@1.10.0 version was hoisted, and then TS failed to compile the user's project:
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.
Describe the bug
The
react-dev-utils
package currently depends onimmer@1.10.0
:create-react-app/packages/react-dev-utils/package.json
Line 68 in edc671e
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-requestedimmer@6
dependency was nested while thereact-dev-utils
-requestedimmer@1.10.0
version was hoisted, and then TS failed to compile the user's project:reduxjs/redux-toolkit#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.The text was updated successfully, but these errors were encountered: