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

Missing dependency declarations #2057

Closed
Tracked by #2651 ...
oliversalzburg opened this issue Dec 20, 2021 · 3 comments
Closed
Tracked by #2651 ...

Missing dependency declarations #2057

oliversalzburg opened this issue Dec 20, 2021 · 3 comments

Comments

@oliversalzburg
Copy link

Describe the bug
When installing @graphql-inspector/cli, many complaints are printed, because the dependencies are not properly declared.

To Reproduce
Steps to reproduce the behavior:
yarn add -D @graphql-inspector/cli

Expected behavior
The CLI is installed without complains and will function as advertised after installation.

Environment:

  • OS: WSL
  • @graphql-inspector/...: ?
  • graphql: 15
  • NodeJS: 16

Additional context

╰─ yarn add -D @graphql-inspector/cli
➤ YN0000: ┌ Resolution step
➤ YN0002: │ @fairmanager/core@workspace:. doesn't provide graphql (p835a8), requested by @graphql-inspector/cli
➤ YN0002: │ @graphql-inspector/cli@npm:3.0.2 [01b40] doesn't provide @graphql-inspector/config (p441e0), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/cli@npm:3.0.2 [01b40] doesn't provide @graphql-inspector/config (pdcec2), requested by @graphql-inspector/loaders
➤ YN0002: │ @graphql-inspector/cli@npm:3.0.2 [01b40] doesn't provide @graphql-tools/utils (p330dd), requested by @graphql-inspector/loaders
➤ YN0002: │ @graphql-inspector/coverage-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/config (pcd256), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/coverage-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/loaders (pecfd8), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/coverage-command@npm:3.0.2 [5f3a5] doesn't provide yargs (p8c95a), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/diff-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/config (pd1281), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/diff-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/loaders (pc7d78), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/diff-command@npm:3.0.2 [5f3a5] doesn't provide yargs (p48b17), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/docs-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/config (p6d72e), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/docs-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/loaders (p3de3c), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/docs-command@npm:3.0.2 [5f3a5] doesn't provide yargs (p3a9bc), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/introspect-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/config (p1a8d4), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/introspect-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/loaders (pc304f), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/introspect-command@npm:3.0.2 [5f3a5] doesn't provide yargs (p14a1c), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/serve-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/config (pd2e8a), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/serve-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/loaders (p1bc86), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/serve-command@npm:3.0.2 [5f3a5] doesn't provide yargs (pba3db), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/similar-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/config (pc3d40), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/similar-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/loaders (p98bb9), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/similar-command@npm:3.0.2 [5f3a5] doesn't provide yargs (pa5b27), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/validate-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/config (p9a3d3), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/validate-command@npm:3.0.2 [5f3a5] doesn't provide @graphql-inspector/loaders (pe3121), requested by @graphql-inspector/commands
➤ YN0002: │ @graphql-inspector/validate-command@npm:3.0.2 [5f3a5] doesn't provide yargs (p02099), requested by @graphql-inspector/commands
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 7s 352ms
...
➤ YN0000: Failed with errors in 10s 521ms
@oliversalzburg
Copy link
Author

For people in a similar situation who just want to try out the CLI, here's some of the package extensions required:

packageExtensions:
  "@graphql-inspector/cli@*":
    dependencies:
      "@graphql-inspector/config": "*"
      "@graphql-tools/utils": "*"
  "@graphql-inspector/commands@*":
    dependencies:
      "@graphql-inspector/coverage-command": "*"
      "@graphql-inspector/diff-command": "*"
      "@graphql-inspector/docs-command": "*"
      "@graphql-inspector/introspect-command": "*"
      "@graphql-inspector/serve-command": "*"
      "@graphql-inspector/similar-command": "*"
      "@graphql-inspector/validate-command": "*"
  "@graphql-inspector/coverage-command@*":
    peerDependencies:
      "@graphql-inspector/config": "*"
      "@graphql-inspector/loaders": "*"
      "yargs": "*"
  "@graphql-inspector/diff-command@*":
    peerDependencies:
      "@graphql-inspector/config": "*"
      "@graphql-inspector/loaders": "*"
      "yargs": "*"
  "@graphql-inspector/docs-command@*":
    peerDependencies:
      "@graphql-inspector/config": "*"
      "@graphql-inspector/loaders": "*"
      "yargs": "*"
  "@graphql-inspector/introspect-command@*":
    peerDependencies:
      "@graphql-inspector/config": "*"
      "@graphql-inspector/loaders": "*"
      "yargs": "*"
  "@graphql-inspector/loaders@*":
    peerDependencies:
      "@graphql-inspector/code-loader": "*"
      "@graphql-inspector/git-loader": "*"
      "@graphql-inspector/github-loader": "*"
      "@graphql-inspector/graphql-loader": "*"
      "@graphql-inspector/json-loader": "*"
      "@graphql-inspector/url-loader": "*"
  "@graphql-inspector/serve-command@*":
    peerDependencies:
      "@graphql-inspector/config": "*"
      "@graphql-inspector/loaders": "*"
      "yargs": "*"
  "@graphql-inspector/similar-command@*":
    peerDependencies:
      "@graphql-inspector/config": "*"
      "@graphql-inspector/loaders": "*"
      "yargs": "*"
  "@graphql-inspector/validate-command@*":
    peerDependencies:
      "@graphql-inspector/config": "*"
      "@graphql-inspector/loaders": "*"
      "yargs": "*"

@theguild-bot theguild-bot mentioned this issue Apr 16, 2023
39 tasks
@TuvalSimha
Copy link
Collaborator

TuvalSimha commented Apr 24, 2023

We made a lot of new changes in the last few weeks - you can see all changes here #2441, I tried to reproduce it and right all look good.
Please, feel free to update me if you see any weird behavior

@zekenie
Copy link

zekenie commented Jun 1, 2023

I'm still seeing this issue

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

No branches or pull requests

3 participants