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.

CLI: missing graphql dependency

See original GitHub issue

Hello, when running hive schema:publish /path/to/schema I get the following error:

 ❯ hive schema:publish
 ›   ModuleLoadError: [MODULE_NOT_FOUND] require failed to load /path/to/project/node_modules/@graphql-hive/cli/dist/commands/schema/publish.js
 ›   Code: MODULE_NOT_FOUND

 ❯ hive --version
@graphql-hive/cli/0.14.6 darwin-arm64 node-v16.13.0

I have no clue what is happening here… I have installed "@graphql-hive/cli": "^0.14.6" as a dev dependency using Yarn. Ran yarn install and even yarn upgrade to see if that changes anything but no. Also tried version 0.13.0 but that didn’t make a difference.

The file mentioned in the error exists on disk and looks complete enough.

It’s also not only for schema:publish but for any command, I can execute hive schema en see the help for the available commands but any actual command is throwing a similar error with the exception for hive update and hive help which seem to function correctly.

Any clue what I’m missing here?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stayallivecommented, Jun 8, 2022

So as it turns out the graphql dependency is needed locally… your repro did make me figure it out 😅

I’m not seeing this in the installation instructions and the error is pretty vague is it possible to update the documentation and/or make sure the graphql dep is present before continuing?

0reactions
stayallivecommented, Jun 29, 2022

Great! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install missing dependencies in angular 10 - Stack Overflow
This is how the dependencies in my package.json look like: "apollo-angular": "^1.10.0" ... npm install apollo-angular @apollo/client graphql.
Read more >
@graphql-codegen/cli - npm
@graphql-codegen/cli. TypeScript icon, indicating that this package has built-in type declarations · Readme · Code Beta · 34 Dependencies · 185 ...
Read more >
API (GraphQL) - Client code generation - AWS Amplify Docs
The amplify codegen statements command generates GraphQL statements(queries, ... Next, modify your Podfile with a dependency of the AWS AppSync SDK:.
Read more >
Migrating to Apollo Client 3.0 - Apollo GraphQL Docs
Install Apollo Client 3.0 with the following command: Text. 1. npm install @apollo/client ... As part of migrating, remove all apollo-client dependencies.
Read more >
Integrating GraphQL Code Generator in your frontend ...
The GraphQL codegen library can generate code for multiple purposes. ... You can use it from the CLI: graphql-codegen --watch.
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