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
Do you want to request a feature or report a bug?
Report a bug 🐛
What is the current behavior? yarn check reports errors after a fresh and seemingly correct install.
If the current behavior is a bug, please provide the steps to reproduce.
Distilled from webpack/webpack#5262:
$ yarn init --yes
$ yarn add [email protected][email protected]
$ yarn checkyarn check v0.27.5error "ajv" is wrong version: expected "4.11.8", got "5.2.2"error "webpack#ajv" not installedwarning "chokidar#fsevents#node-pre-gyp@^0.6.36" could be deduped from "0.6.36" to "[email protected]"error Found 2 errors.
What is the expected behavior? yarn check does not report errors.
It appears the problem is that [email protected] depends on ajv@^5.1.5 and transitively on ajv@^4.9.1, while [email protected] transitively depends on ajv@^4.7.0.
$ yarn why ajvinfo Has been hoisted to "ajv"info Reasons this module exists - "eslint#table" depends on it - "webpack#watchpack#chokidar#fsevents#node-pre-gyp#request#har-validator" depends on it
The install appears correct, though; yarn.lock contains two resolved versions for ajv:
ajv@^4.7.0, ajv@^4.9.1:
version "4.11.8"
ajv@^5.1.5:
version "5.2.2"
Recommend closing this in favor of #3933, which contains a generalized reproduction (not specific to webpack) and a lengthy explanation of the rationale for treating peerDependencies as npm does.
Do you want to request a feature or report a bug?
Report a bug 🐛
What is the current behavior?
yarn check
reports errors after a fresh and seemingly correct install.If the current behavior is a bug, please provide the steps to reproduce.
Distilled from webpack/webpack#5262:
What is the expected behavior?
yarn check
does not report errors.It appears the problem is that
[email protected]
depends onajv@^5.1.5
and transitively onajv@^4.9.1
, while[email protected]
transitively depends onajv@^4.7.0
.The install appears correct, though; yarn.lock contains two resolved versions for ajv:
[email protected]
is installed innode_modules
:[email protected]
is installed innode_modules/har-validator/node_modules
andnode_modules/table/node_modules
:The transitive aspect appears to be key,
$ yarn add [email protected] [email protected]
does not cause this error; interestingly, it installs
[email protected]
tonode_modules
and[email protected]
tonode_modules/webpack/node_modules
.Please mention your node.js, yarn and operating system version.
Node 6.10.3
Yarn 0.27.5
Mac OS X 10.12.5
The text was updated successfully, but these errors were encountered: