[Chore] Fix our peer dependency warnings
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 8.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
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:
X doesn't provide Y requested by Z
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.
- For example, upgrading Gatsby might fix the
2.0.0-printer-fix.2error.
- For example, upgrading Gatsby might fix the
-
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-baras a peer depencency onreactand is a dependency ofreact-foo, then you can addreactto the peer dependencies ofreact-foo. Then it'll be up to whoever depends onreact-footo depends onreactas well.- For example, I strongly suspect it's the case of
jest-jasmine2which should have a peer dependency onjest-haste-map.
- For example, I strongly suspect it's the case of
-
Add Y as regular dependency of X if it's just a matter of a peer dependency having been omitted by mistake.
- For example,
html-react-parsershould probably have regular dependencies on bothobject-assignandfbjsto satisfy the requirements ofreact-dom-core.
- For example,
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running yarn install in the repository and cataloguing each peer dependency warning. Trace each warning to the named packages and their dependency metadata, then update or report the appropriate package relationships until the install completes without these warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system, tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100