graphql-cli
graphql-cli copied to clipboard
`utils.memoize2of4` is not a function
Describe the bug
It complains about a missing function, utils.memoize2of4.
To Reproduce Steps to reproduce the behavior:
- run
graphql codegen
Expected behavior It executes without error and writes my schema to the given file.
Screenshots

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"
},
In my case I had to delete all the node_modules dir, then yarn install and it works again.