Conflicting @types/jest version
Seth10001 opened this issue · 1 comments
Seth10001 commented
Describe the bug
After cloning the project and installing the npm modules I get an error because @emotion/jest
has a dev dependency @types/jest
that conflicts with this project's @types/jest
version. See the full error below
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @emotion/jest@11.3.0
npm ERR! Found: @types/jest@27.0.2
npm ERR! node_modules/@types/jest
npm ERR! dev @types/jest@"^27.0.2" from the root project
npm ERR! peerOptional @types/jest@"^27.0.0" from ts-jest@27.0.5
npm ERR! node_modules/ts-jest
npm ERR! dev ts-jest@"^27.0.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional @types/jest@"^26.0.14" from @emotion/jest@11.3.0
npm ERR! node_modules/@emotion/jest
npm ERR! dev @emotion/jest@"^11.3.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @types/jest@26.0.24
npm ERR! node_modules/@types/jest
npm ERR! peerOptional @types/jest@"^26.0.14" from @emotion/jest@11.3.0
npm ERR! node_modules/@emotion/jest
npm ERR! dev @emotion/jest@"^11.3.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
To Reproduce
Steps to reproduce the behavior:
- git clone https://github.com/davidhu2000/react-spinners.git
- npm install
Update 1
node version - 16.9.1
npm version - 7.21.1
davidhu2000 commented
emotion has been removed, so this issue should be resolved in 0.13.0-alpha.4