question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"yarn create react-app my-app --typescript" generates "incorrect peer dependency" warnings

See original GitHub issue

Describe 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:)

  1. 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:closed
  • Created 4 years ago
  • Reactions:23
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
iansucommented, Sep 3, 2019

Updating eslint-plugin to 2.0.0 is a breaking change so we can’t do that until at least the 3.2 release.

1reaction
nickmccurdycommented, Sep 11, 2019

Couldn’t we pin ESLint’s version to 5 so the peer dependency is met?

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-react-app dependency version issues with React 18
this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. The command ...
Read more >
styled-components@5.3.5" has unmet peer dependency ...
Simply installing Storybook HTML with the recommended method causes a ton of dependency warnings to be emitted every time the package manager (Yarn)...
Read more >
How to build a React library using TypeScript - Prateek Surana
A step by step guide to setup a React Library from scratch using TypeScript, and publish it to NPM.
Read more >
How to Create and Publish a React Component Library
npx create-react-app my-app --template typescript ... The other is to update some of our dependencies to peerDependencies .
Read more >
npx-create-react-app - Web-Dev-Hub
Excluding it from installation. [3/4] Linking dependencies... warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.20.0" has unmet peer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found