Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How come Jest 26.6.3 would not work with CRA requiring Jest 26.6.0? Too strict requirement? #10772

Open
olignyf opened this issue Apr 1, 2021 · 4 comments

Comments

@olignyf
Copy link

olignyf commented Apr 1, 2021

$ react-scripts start

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": "26.6.0"

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:

  C:\dev\react-scss-jest-typescript\node_modules\jest (version: 26.6.3)
@ghost
Copy link

ghost commented Apr 4, 2021

i am experiencing the same issue. I have to downgrade jest to 26.6.0

@oluwatobi
Copy link

I think upgrading Jest to 26.6.3 would fix this issue. I have an MR prepped to do so. Could someone give me access to push a branch for an MR? There are some security updates I wanted to contribute as well.

@gaearon looks like you can grant such access?

@yifanwww
Copy link

CRA will verify package tree by default.
If you would prefer to ignore this check, you can add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.

@stale
Copy link

stale bot commented Jan 9, 2022

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.

@stale stale bot added the stale label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants