Open arcanis opened 5 years ago
This PR will fix both warnings: https://github.com/yarnpkg/berry/pull/4935
β€ YN0060: β @yarnpkg/monorepo@workspace:. provides eslint (pf82c3) with version 8.2.0, which doesn't satisfy what @yarnpkg/eslint-config and some of its descendants request
β€ YN0002: β acceptance-tests@workspace:packages/acceptance-tests doesn't provide jest (pcc8ab), requested by jest-json
these are all gatsby related, many repositories have been archived and we can't do anything about them.
but these will no longer be a problem after https://github.com/yarnpkg/berry/pull/4851, I believe we have a reason to leave them alone
β€ YN0002: β gatsby-cli@npm:3.14.0 [7243a] doesn't provide ink (p4a7fc), requested by gatsby-recipes
β€ YN0002: β gatsby-plugin-manifest@npm:3.7.0 [118b2] doesn't provide graphql (p0cd4a), requested by gatsby-plugin-utils
β€ YN0002: β gatsby-plugin-page-creator@npm:3.14.0 [7243a] doesn't provide graphql (pd3e76), requested by gatsby-plugin-utils
β€ YN0060: β gatsby-recipes@npm:0.25.0 [bb88b] provides graphql (pc0633) with version 15.5.0, which doesn't satisfy what graphql-subscriptions
β€ YN0002: β gatsby@npm:3.14.0 [118b2] doesn't provide babel-eslint (p70342), requested by eslint-config-react-app
β€ YN0002: β react-instantsearch-dom@npm:6.6.0 [118b2] doesn't provide algoliasearch (p65251), requested by algoliasearch-helper
β€ YN0002: β react-instantsearch-dom@npm:6.6.0 [118b2] doesn't provide algoliasearch (p5ab0d), requested by react-instantsearch-core
β€ YN0002: β @endemolshinegroup/cosmiconfig-typescript-loader@npm:3.0.2 [714f3] doesn't provide typescript (p88d18), requested by ts-node
β€ YN0002: β @yarnpkg/gatsby@workspace:packages/gatsby doesn't provide @emotion/core (pa19bb), requested by gatsby-plugin-mdx
β€ YN0002: β @yarnpkg/gatsby@workspace:packages/gatsby doesn't provide webpack (pe1aa2), requested by gatsby-plugin-favicon
I found some PRs about this: https://github.com/algolia/algoliasearch-helper-js/pull/746 https://github.com/algolia/react-instantsearch/pull/2811 https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/pull/133 https://github.com/Creatiwity/gatsby-plugin-favicon/pull/65
These are all the warnings we have, I think we can close this issue, or remove the first-good-issue
tag to prevent people from spending time on it, and wait for a successful conversion to docusaurus
Hi @arcanis can you please assign this to me ?
NVM, I think @jj811208 already have fixed this in his PR above π
We have various peer dependency warnings displayed when running
yarn install
inside our own repository. It would be great if we could fix the upstream packages to stop it from happening, as it's a matter of time before it causes more serious issues:Given a warning:
The best fix is generally to either:
Upgrade the faulty package in our codebase to get rid of the warning. Some of those may have already been fixed.
2.0.0-printer-fix.2
error.Mark Y as an optional peer dependency in Z, if Z doesn't need Y to work. If Z's maintainers are concerned about potential warnings being shown to their users, tell them that optional peer dependencies are supported by Yarn, npm 6.1+, and pnpm. It's a feature they should use.
Add Y as a peer dependency of X. This will move the warning up by one level, but by doing this it's possible that the peer dependency will be met in a satisfying way. For example, if
react-bar
as a peer depencency onreact
and is a dependency ofreact-foo
, then you can addreact
to the peer dependencies ofreact-foo
. Then it'll be up to whoever depends onreact-foo
to depends onreact
as well.jest-jasmine2
which should have a peer dependency onjest-haste-map
.Add Y as regular dependency of X if it's just a matter of a peer dependency having been omitted by mistake.
html-react-parser
should probably have regular dependencies on bothobject-assign
andfbjs
to satisfy the requirements ofreact-dom-core
.