We have a lerna monorepo setup with CRA project, Typescript Node.js Server and Javascript projects for shared codes. React script has jest dependacy with 24.7.1 and I installed jest as a devDependancy for one of shared package. It installed jest 28.x.x version and CRA preflight check fails.
I tried deleting node_modules, yarn.lock folder and running lerna bootsrap
System:
OS: macOS 10.14.5
CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Binaries:
Node: 10.15.3 - /usr/local/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Browsers:
Chrome: 75.0.3770.142
Firefox: 67.0.4
Safari: 12.1.1
npmPackages:
react: Not Found
react-dom: Not Found
react-scripts: Not Found
npmGlobalPackages:
create-react-app: Not Found
(Write your steps here:)
CRA start without failure
Pre flight check fails with jest version mismatch.
(Paste the link to an example project and exact instructions to reproduce the issue.)
Any updates on it? Having the same trouble
Most helpful comment
Any updates on it? Having the same trouble