GraphQL codegen using GraphQLError type without importing it

GraphQL codegen using GraphQLError type without importing it


0

This is my codegen config:

'generated/graphql-sdk.ts': {
  config: {
    rawRequest: true
  },
  plugins: [
    "typescript",
    "typescript-graphql-request",
    "typescript-operations",
    {
      'fragment-matcher': {
        apolloClientVersion: 3,
        module: "es2015",
        useExplicitTyping: false
      }
    }
  ]
},

For some reason the generated graphql-sdk doesn’t import GraphQLError causing the typing error, I end up needing to add it in manually.

This only started happening recently but I’m unsure what changed in the code to cause it (config is entirely unchanged).


Load 5 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *