You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pnpm config set strict-peer-dependencies=true --userconfig=.npmrc
Next try to install jest
pnpm install jest@27.4.6
Expected behavior
I should be able to install jest without explicitly specifying dependency on @babel/core@^7.0.0-0.
Actual behavior
The pnpm install jest@27.4.6 command fails with the following message: ERR_PNPM_MISSING_PEER_DEPENDENCY jest > @jest/core > jest-config > babel-jest > babel-preset-jest > babel-preset-current-node-syntax: @babel/plugin-syntax-async-generators@7.8.4 requires a peer of @babel/core@^7.0.0-0 but none was installed.
Additional context
The issue was introduced by jest-config@27.4.6
In version 27.4.6 the dependency on @babel/core was removed (it was present in previous version 27.4.5).
The purpose of that dependency was to satisfy peerDependency defined in babel-jest.
patryk-bartoszek
changed the title
[Bug]: Jest instalation fails when using pnpm with strict-peer-dependencies setting
[Bug]: Jest installation fails when using pnpm with strict-peer-dependencies setting
Jan 5, 2022
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
27.4.6
Steps to reproduce
First set strict-peer-dependencies flag in .npmrc file:
Next try to install jest
Expected behavior
I should be able to install jest without explicitly specifying dependency on
@babel/core@^7.0.0-0
.Actual behavior
The
pnpm install jest@27.4.6
command fails with the following message:ERR_PNPM_MISSING_PEER_DEPENDENCY jest > @jest/core > jest-config > babel-jest > babel-preset-jest > babel-preset-current-node-syntax: @babel/plugin-syntax-async-generators@7.8.4 requires a peer of @babel/core@^7.0.0-0 but none was installed.
Additional context
The issue was introduced by
jest-config@27.4.6
In version
27.4.6
the dependency on@babel/core
was removed (it was present in previous version27.4.5
).The purpose of that dependency was to satisfy
peerDependency
defined inbabel-jest
.This appears to be caused by changes in #12190.
Environment
The text was updated successfully, but these errors were encountered: