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
My possibly wrong assumption is that devDependencies are a good candidate to be in the root package.json file and not in the individual leaf package.json files.
Then @my/eslint-config which is a custom eslint package declares @babel/eslint-parser as a peerDependency.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am really confused about yarn 3 or yarn berry's
YN0002
.Say I have a monorepo with the following
devDependencies
in the rootpackage.json
:My possibly wrong assumption is that
devDependencies
are a good candidate to be in the root package.json file and not in the individual leafpackage.json
files.Then
@my/eslint-config
which is a custom eslint package declares@babel/eslint-parser
as apeerDependency
.Then
@my/other-package
has@my/eslint-config
as adevDependency
:When I run
yarn install
in the root, I get this warning:➤ YN0002: │ @my/other-pacakage@workspace:packages/other-package doesn't provide @babel/eslint-parser (peb3b5), requested by @my/eslint-config
I don't understand why I am getting this warning when
@babel/eslint-parser
is declared as a peerDendency in@my/eslint-config
Beta Was this translation helpful? Give feedback.
All reactions