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:
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:
│ └─┬ email@example.com
│ └── firstname.lastname@example.org
So it seems Create React App has a problem with tsdx using email@example.com. Does anyone know how I can get around this issue without disabling the preflight check.
Hope that makes sense!