`npx graphql-code-generator init` does not work after installing (missing module)
See original GitHub issueDescribe the bug
After installing, the command npx graphql-code-generator init
fails to load.
The example on StackBlitz is unironically also failing on the exact same problem: Stackblitz
Your Example Website or App
https://stackblitz.com/github/dotansimha/graphql-code-generator-issue-sandbox-template
Steps to Reproduce the Bug or Issue
Just go to the link and it will fail on “Cannot find module ‘/Users/reinierkaper/projects/remx/apps/remx/node_modules/@graphql-tools/url-loader/cjs/index.js’”
Expected behavior
Things to work
Screenshots or Videos
No response
Platform
- OS: macOS
- NodeJS: 16.15.1
graphql
version: 16.5.0@graphql-codegen/cli
version(s): 2.9.1
Codegen Config File
No response
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:8
Top Results From Across the Web
Installation doesn't work? · Discussion #7680 - GitHub
I'm trying to follow the installation docs, but I don't think they're correct? https://www.graphql-code-generator.com/docs/getting-started/ ...
Read more >Installation - GraphQL Code Generator
Question by question, it will guide you through the whole process of setting up a schema, selecting and installing plugins, picking a ...
Read more >graphql-codegen not running with config file - Stack Overflow
Since I believe the default file name is codegen.yml anyway, I try to run it with out that argument and nothing gets generated:...
Read more >@graphql-codegen/cli - npm
Start using @graphql-codegen/cli in your project by running `npm i ... Live demo and full documentation: graphql-code-generator.com.
Read more >How to build an Apollo GraphQL server with TypeScript and ...
Note: npx is a tool (bundled with NPM version 5.2 or above) for running NPM packages that are installed in local node_modules folder....
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 Free
Top 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
Thank you ❤️
GitHub Loader is also released; https://unpkg.com/@graphql-tools/github-loader@7.3.4