CLI: missing graphql dependency
See original GitHub issueHello, 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:
- Created a year ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?Great! Thanks!