Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #8750
Closed
Open
Issue created Mar 30, 2020 by Administrator@rootContributor

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

Created by: markerikson

Describe the bug

The react-dev-utils package currently depends on immer@1.10.0:

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 immer@1.10.0 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.

Assignee
Assign to
Time tracking