Created by: bbrk24
When using create-react-app with yarn 3, every run of yarn install
produces these warnings:
➤ YN0002: │ react-dev-utils@npm:11.0.4 doesn't provide typescript (p79ddf), requested by fork-ts-checker-webpack-plugin
➤ YN0002: │ react-dev-utils@npm:11.0.4 doesn't provide webpack (p2af19), requested by fork-ts-checker-webpack-plugin
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
even though typescript
and webpack
are already provided elsewhere. By specifying these as peer dependencies of react-dev-utils, the warnings are silenced without changing what dependencies are installed.
Example output before the change: And after the change:
To prove this change doesn't affect the dependency tree, here's the output of npm ls typescript
after the change:
And npm ls webpack
: