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.

`npx graphql-code-generator init` does not work after installing (missing module)

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

3reactions
paalescommented, Jul 20, 2022

Thank you ❤️

2reactions
ardatancommented, Jul 20, 2022
Read more comments on GitHub >

github_iconTop 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 >

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