- 
                Notifications
    You must be signed in to change notification settings 
- Fork 54
Closed
Description
Thank you for making this plugin! .πΈ
Share about the errors I encountered.
This error when I did  yarn codegen.
β ./graphql/mock.ts
    TypeError: visitFn.call is not a function
I dropped "grapql" from v16 to v15.8.0 and it ran fine.
This is my schema:
overwrite: true
schema: ${API_URL}/graphql
documents: 'graphql/**/*.graphql'
generates:
  ./graphql.schema.json:
    plugins:
      - 'introspection'
  ./graphql/graphql.ts:
    plugins:
      - 'typescript'
      - 'typescript-operations'
      - typescript-react-query
    config:
      fetcher: graphql-request
  ./graphql/mock.ts:
    plugins:
      - typescript-mock-data:
        typeFile: './graphql/graphql.ts'
        addTypename: true
        prefix: 'mock'
        enumValues: pascal-case#pascalCase
        typename: keep
        terminateCircularRelationships: true
        scalars:
          BaseDateTime:
            generator: date
            arguments: 'YYYY-MM-DD'
Link of issue of another repository that I referred to
croutonn/graphql-codegen-plugin-typescript-swr#179
st3phan and BenDLH
Metadata
Metadata
Assignees
Labels
No labels