"yarn create react-app my-app --typescript" generates "incorrect peer dependency" warnings
See original GitHub issueDescribe the bug
Create a basic app via ‘yarn create react-app my-app --typescript’ generates two warnings during initial installation:
warning “react-scripts > @typescript-eslint/eslint-plugin@1.13.0” has incorrect peer dependency “eslint@^5.0.0”. warning “react-scripts > @typescript-eslint/parser@1.13.0” has incorrect peer dependency “eslint@^5.0.0”.
Did you try recovering your dependencies?
No. This is a brand new repository with a brand new app created using brand new versions of yarn, create-react-app, and npm.
Which terms did you search for in User Guide?
I found references to several “unmet peer dependency” warning issues, but nothing specifically about “incorrect peer dependency” warnings
Environment
Environment Info:
System: OS: macOS 10.14.6 CPU: (4) x64 Intel® Core™ i5-6267U CPU @ 2.90GHz Binaries: Node: 12.8.0 - /usr/local/bin/node Yarn: 1.17.3 - /usr/local/bin/yarn npm: 6.10.3 - /usr/local/bin/npm Browsers: Chrome: 76.0.3809.100 Firefox: Not Found Safari: 12.1.2 npmPackages: react: ^16.9.0 => 16.9.0 react-dom: ^16.9.0 => 16.9.0 react-scripts: 3.1.1 => 3.1.1 npmGlobalPackages: create-react-app: Not Found
Steps to reproduce
(Write your steps here:)
- yarn create react-app my-app --typescript
Expected behavior
No warnings
Actual behavior
Warnings: [3/4] 🔗 Linking dependencies… warning “react-scripts > @typescript-eslint/eslint-plugin@1.13.0” has incorrect peer dependency “eslint@^5.0.0”. warning “react-scripts > @typescript-eslint/parser@1.13.0” has incorrect peer dependency “eslint@^5.0.0”.
Reproducible demo
Should be reproducible in any similar dev environment, unless there is something specifically wrong with my setup.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:23
- Comments:11 (4 by maintainers)
Top GitHub Comments
Updating
eslint-plugin
to 2.0.0 is a breaking change so we can’t do that until at least the 3.2 release.Couldn’t we pin ESLint’s version to 5 so the peer dependency is met?