Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !11526

Add peer dependencies for fork-ts-checker-webpack-plugin

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Administrator requested to merge github/fork/bbrk24/main into main Oct 09, 2021
  • Overview 9
  • Commits 1
  • Pipelines 0
  • Changes 1

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: image And after the change: image

To prove this change doesn't affect the dependency tree, here's the output of npm ls typescript after the change: image And npm ls webpack: image

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/bbrk24/main