Skip to content

CRA dev dependency warning with yarn workspaces with [email protected] #4296

Closed
@bugzpodder

Description

@bugzpodder

Is this a bug report?

YES

Did you try recovering your dependencies?

YES
yarn 1.5.1

Which terms did you search for in User Guide?

Environment

  1. node -v: 8.9.3
  2. npm -v:
  3. yarn --version (if you use Yarn): 1.5.1
  4. npm ls react-scripts (if you haven’t ejected): 2.0.0-next.b2fd8db8

Then, specify:

  1. Operating system: macOS
  2. Browser and version (if relevant): Chrome

Steps to Reproduce

(Write your steps here:)
Create app1 (express) with devdependencies:
"devDependencies": {
"babel-jest": "22.4.3",
"eslint": "4.19.1",
"jest": "22.4.3"
},
Create app2 (CRA)

Expected Behavior

yarn start succeeds

Actual Behavior

There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

"jest": "22.1.2"

Don't try to install it manually: your package manager does it automatically.
However, a different version of jest was detected higher up in the tree:

root/node_modules/jest (version: 22.4.3)

Reproducible Demo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions