Hi there!
I’m using @swyx’s react-netlify-identity with Create React App. It was working fine locally but when building on Netlify I get the following error:
The react-scripts package provided by Create React App requires a dependency:
“jest”: “24.7.1”
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[…]
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.
That will permanently disable this message but you might encounter other issues.
If I switch from yarn to npm locally I can replicate the issue. When i run npm ls jest
I see this:
├─┬ react-netlify-identity@0.1.9
│ └─┬ tsdx@0.6.1
│ └── jest@24.8.0
└─┬ react-scripts@3.0.1
└── jest@24.7.1
So it seems Create React App has a problem with tsdx using jest@24.8.0. Does anyone know how I can get around this issue without disabling the preflight check.
Hope that makes sense!