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

CRA has unmet peer dependencies #8446

Closed
JeromeDeLeon opened this issue Feb 9, 2020 · 16 comments · Fixed by #8963
Closed

CRA has unmet peer dependencies #8446

JeromeDeLeon opened this issue Feb 9, 2020 · 16 comments · Fixed by #8963

Comments

@JeromeDeLeon
Copy link
Contributor

JeromeDeLeon commented Feb 9, 2020

Whenever I installed new CRA using npx, there are three unmet dependencies:

warning " > @testing-library/user-event@8.1.0" has unmet peer dependency "@testing-library/dom@>=5".
warning "react-scripts > eslint-config-react-app@5.2.0" has incorrect peer dependency "eslint-plugin-flowtype@3.x".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".

I saw related PR for making TS optional, but what about those two?
I tried deleting node_modules and even creating a new one, but still those warnings exist.

@stale
Copy link

stale bot commented Mar 10, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Mar 10, 2020
@andrewmclagan
Copy link

I would bump this.

When using Yarn 2 (berry) and running npx @yarnpkg/doctor we receive:

/Users/.../app/package.json:42:36: Unmet transitive peer dependency on @testing-library/dom@>=5, via @testing-library/user-event@^7.1.2

@stale stale bot removed the stale label Mar 11, 2020
@NMinhNguyen
Copy link
Contributor

@kentcdodds do you think it's worth adding @testing-library/dom to the list of project dependencies? Technically speaking it's provided by @testing-library/react but not sure how else to get around this warning.

@kentcdodds
Copy link
Contributor

I'd be fine with it personally.

@NMinhNguyen
Copy link
Contributor

I'd be fine with it personally.

@kentcdodds fine with a dependency on dom? Or with the warning being there because it's harmless? 😅 The only main downside I can envisage is it might confuse users - they might wonder, "Do I import RTL or DTL?"

@kentcdodds
Copy link
Contributor

I'm fine with the dependency. I doubt people would import the dom library directly.

@stale
Copy link

stale bot commented Apr 25, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Apr 25, 2020
@NMinhNguyen
Copy link
Contributor

Don't mark this as stale yet, would be good for #8155 to land first. It includes https://github.com/testing-library/eslint-plugin-testing-library/blob/master/docs/rules/no-dom-import.md to deter users from importing the DOM library

@stale stale bot removed the stale label Apr 25, 2020
@stale
Copy link

stale bot commented May 25, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added stale and removed stale labels May 25, 2020
@stale
Copy link

stale bot commented Jun 26, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Jun 26, 2020
@NMinhNguyen
Copy link
Contributor

#8155 should be merged soon at which point this issue can be tackled (at least the testing library part)

@stale stale bot removed the stale label Jun 26, 2020
@stale
Copy link

stale bot commented Jul 26, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale
Copy link

stale bot commented Aug 29, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Aug 29, 2020
@NMinhNguyen
Copy link
Contributor

This is now dependent on #8963 instead.

@stale
Copy link

stale bot commented Oct 4, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Oct 4, 2020
@stale
Copy link

stale bot commented Oct 12, 2020

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

@stale stale bot closed this as completed Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants