Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YN0002: react-dev-utils@npm:11.0.4 doesn't provide typescript or webpack, requested by fork-ts-checker-webpack-plugin #10902

Open
spiltcoffee opened this issue Apr 30, 2021 · 0 comments

Comments

@spiltcoffee
Copy link

Describe the bug

  • Trying to use a project that depends on react-dev-utils@11.0.4
  • When using Yarn 2 (yarn -v = 2.4.1), the following messages appear:
$ yarn
...
➤ 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

$ yarn explain peer-requirements p79ddf
➤ YN0000: react-dev-utils@npm:11.0.4 doesn't provide typescript, breaking the following requirements:

➤ YN0000: fork-ts-checker-webpack-plugin@npm:4.1.6 [3a3d7] → >= 2.7 ✘

$ yarn explain peer-requirements p2af19
➤ YN0000: react-dev-utils@npm:11.0.4 doesn't provide webpack, breaking the following requirements:

➤ YN0000: fork-ts-checker-webpack-plugin@npm:4.1.6 [3a3d7] → >= 4 ✘

Did you try recovering your dependencies?

This happens in a fresh project, so, not applicable.

Which terms did you search for in User Guide?

Yarn, YN0002

Environment

$ npx create-react-app --info
npx: installed 67 in 3.426s

Environment Info:

  current version of create-react-app: 4.0.3
  running from /home/spiltcoffee/.npm/_npx/2092/lib/node_modules/create-react-app

  System:
    OS: Linux 5.4 Debian GNU/Linux 10 (buster) 10 (buster)
    CPU: (8) x64 Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
  Binaries:
    Node: 14.16.1 - /usr/bin/node
    Yarn: 2.4.1 - /usr/bin/yarn
    npm: 6.14.13 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

  1. Create a Yarn 2 project:
$ yarn set version berry
  1. Add the following package.json:
{
  "devDependencies": {
    "react-dev-utils": "^11.0.4"
  }
}
  1. Install:
$ yarn
  1. Warnings appear in output

Expected behavior

For YN0002 warnings regarding react-dev-utils to not appear when running yarn.

Actual behavior

YN0002 warnings regarding react-dev-utils appeared when running yarn.

Reproducible demo

See "Steps to reproduce" for minimal example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant