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

Example Doesn't Run #268

Open
RileySeaburg opened this issue Sep 20, 2021 · 1 comment
Open

Example Doesn't Run #268

RileySeaburg opened this issue Sep 20, 2021 · 1 comment

Comments

@RileySeaburg
Copy link

RileySeaburg commented Sep 20, 2021

Tried implementing this example but I wasn't sure where the config was pulling ./graphql from.

Turns out the compiler has no idea either.

`Error: Cannot find module 'graphql'
Require stack:

  • C:\Users\riley\graphql-codegen-apollo-next-ssr\example\node_modules@graphql-codegen\plugin-helpers\index.js
  • C:\Users\riley\graphql-codegen-apollo-next-ssr\example\node_modules@graphql-codegen\cli\bin.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (C:\Users\riley\graphql-codegen-apollo-next-ssr\example\node_modules@graphql-codegen\plugin-helpers\index.js:10:17)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\riley\graphql-codegen-apollo-next-ssr\example\node_modules\@graphql-codegen\plugin-helpers\index.js',
    'C:\Users\riley\graphql-codegen-apollo-next-ssr\example\node_modules\@graphql-codegen\cli\bin.js'
    ]
    }
    error Command failed with exit code 1.`
@fjfalah
Copy link

fjfalah commented Oct 9, 2021

@RileySeaburg have you done to build in the parent directory? I got the same error for the first time I ran the codegen in the example, and it worked when I build the parent directory first

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

2 participants