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

utils.memoize2of4 is not a function #1879

Open
Jomik opened this issue Mar 8, 2022 · 1 comment
Open

utils.memoize2of4 is not a function #1879

Jomik opened this issue Mar 8, 2022 · 1 comment

Comments

@Jomik
Copy link

Jomik commented Mar 8, 2022

Describe the bug
It complains about a missing function, utils.memoize2of4.

To Reproduce
Steps to reproduce the behavior:

  1. run graphql codegen

Expected behavior
It executes without error and writes my schema to the given file.

Screenshots
image

Versions (please complete the following information):

  • "@graphql-cli/codegen": "2.2.3",
  • "@graphql-codegen/schema-ast": "2.4.1",
  • "graphql-cli": "4.1.0",

Additional context

schema:
  - './schema.graphql'
documents: './src/**/*.{ts,tsx}'
extensions:
  languageService:
    useSchemaFileDefinitions: true
  codegen:
    generates:
      ./schema.graphql:
        schema:
          - ./data/relay-compiler-directives.graphql
          - https://a.url.com/graphql:
              headers:
                Authorization: $GRAPHQL_INTROSPECTION_TOKEN
        plugins:
          - schema-ast
  "resolutions": {
    "graphql": "15.5.3",
    "graphql-config": "4.1.0"
  },
@BenjaminG
Copy link

In my case I had to delete all the node_modules dir, then yarn install and it works again.

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