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

Unhandled Codegen error on create of .gql|graphql file in dev. #271

Open
cpreston321 opened this issue Dec 8, 2022 · 1 comment · May be fixed by #274
Open

Unhandled Codegen error on create of .gql|graphql file in dev. #271

cpreston321 opened this issue Dec 8, 2022 · 1 comment · May be fixed by #274
Assignees
Labels
bug Something isn't working

Comments

@cpreston321
Copy link
Contributor

Environment

any

Describe the bug

[unhandledRejection] Invalid Codegen Configuration!                                                                                           19:01:53

        Please make sure that your codegen config file contains the "generates" field, with a specification for the plugins you need.

        It should looks like that:

        schema:
          - my-schema.graphql
        generates:
          my-file.ts:
            - plugin1
            - plugin2
            - plugin3

  
  Please make sure that your codegen config file contains the "generates" field, with a specification for the plugins you need.
  
  It should looks like that:
  
  schema:
  - my-schema.graphql
  generates:
  my-file.ts:
  - plugin1
  - plugin2
  - plugin3
  at normalize 

Expected behaviour

Shouldn't have any errors

Reproduction

No response

Additional context

When creating a gql file in dev environment I receive this error.

Logs

No response

@cpreston321 cpreston321 added the bug Something isn't working label Dec 8, 2022
@Diizzayy Diizzayy self-assigned this Dec 8, 2022
@cpreston321 cpreston321 linked a pull request Dec 8, 2022 that will close this issue
@melrefaie
Copy link

@Diizzayy its related to node version.
i have this issue with node version v18.12.1 in both dev and prod
but when i use version v16.16.0 codegen works fine.

Side note :
it works with node 18 when i disable codgen
codegen: false
but another issue appear that queries don't work and i got errors. and query work in client when refreshing it manually.
stange buggs :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants