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

graphql peer dependencies mismatch #7933

Closed
4 tasks done
marvinroger opened this issue Apr 11, 2022 · 3 comments · Fixed by #7934
Closed
4 tasks done

graphql peer dependencies mismatch #7933

marvinroger opened this issue Apr 11, 2022 · 3 comments · Fixed by #7934
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@marvinroger
Copy link
Contributor

New Issue Checklist

Issue Description

The graphql dependency does not match the peer dependencies requirements.

Steps to reproduce

Installing with yarn prints peer dependencies issues.

Actual Outcome

➤ YN0000: parse-server@npm:5.2.0 provides graphql@npm:15.7.1 with version 15.7.1, which doesn't satisfy the following requirements:

➤ YN0000: subscriptions-transport-ws@npm:0.11.0 [b75e4] → ^15.7.2 || ^16.0.0 ✘

Expected Outcome

Environment

No warning.

Server

  • Parse Server version: 5.2.0
@parse-github-assistant
Copy link

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label Apr 11, 2022
@mtrezza mtrezza linked a pull request Apr 11, 2022 that will close this issue
7 tasks
@mtrezza
Copy link
Member

mtrezza commented Apr 11, 2022

I suppose even with the PR, we will continue to run into these mismatches in the future. What can we do about that?

@marvinroger
Copy link
Contributor Author

The only way I've found is to use Yarn Berry, which prints warnings when there's such a mismatch.
AFAIK, npm does not provide these kind of hints, but maybe a CI check like https://github.com/christopherthielen/check-peer-dependencies can do the trick?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants