graphql-cli icon indicating copy to clipboard operation
graphql-cli copied to clipboard

`utils.memoize2of4` is not a function

Open Jomik opened this issue 3 years ago • 1 comments

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"
  },

Jomik avatar Mar 08 '22 15:03 Jomik

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

BenjaminG avatar May 17 '22 15:05 BenjaminG