Skip to content

react scripts 4.0.3 installs react-error-overlay 6.0.11 version #12515

@ops1ops

Description

@ops1ops

Describe the bug

I want to use fixed version of react scripts (4.0.3) but overlay with build errors doesnt work with that version. After a lot of research i found that "react-dev-utils" dependency has "react-error-overlay": "^6.0.9" and because of "^" sign it installs latest "react-error-overlay" version (6.0.11). And im not really sure, but something is wrong or incompatible with "react scripts" 4.0.3 version, and when i manually downgrade "react-error-overlay" to 6.0.9 as it supposed to be, everything works well.

Did you try recovering your dependencies?

Yes, i did npm install --force and also removed node modules with lock file and reinstalled it

Environment

  current version of create-react-app: 5.0.1
  running from /home/ilya/.npm/_npx/37944/lib/node_modules/create-react-app

  System:
    OS: Linux 5.4 Ubuntu 20.04.4 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
  Binaries:
    Node: 14.18.3 - ~/.nvm/versions/node/v14.18.3/bin/node
    Yarn: 1.22.17 - /usr/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.3/bin/npm
  Browsers:
    Chrome: 101.0.4951.64
    Firefox: 100.0.2
  npmPackages:
    react: ^16.13.1 => 16.14.0 
    react-dom: ^16.13.1 => 16.14.0 
    react-scripts: 4.0.3 => 4.0.3 
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

  1. Install react-scripts 4.0.3 version
  2. Go to package-lock
  3. Find "react-error-overlay"
  4. See that "version": "6.0.11"

Expected behavior

The version is supposed to be 6.0.9 as it declared in "react-dev-utils" or you needed to create major update for "react-error-overlay" because it doesnt work with "react-scripts" <5 versions

Reproducible demo

Reproduction repo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions