reactjs – Multiple exports with the same in graphql.ts file after runnig pnpm run codegen
stack using
strapi cms
ractjs (typescript)
Graphql
Problem facing after runnign codegen command to generate graphql query i’m getting error multiple exports with same name
codegen setup:
import type { CodegenConfig } from ‘@graphql-codegen/cli’
const config: CodegenConfig = {
overwrite: true,
schema: ‘http://localhost:1337/graphql’,
documents: ‘./src/**/*.graphql’,
generates: {
‘./src/gql/’: {
preset: ‘client’,
plugins: [
‘typescript’,
‘typescript-operations’,
{
‘typescript-react-apollo’: {
// Set the hooks option to true to generate hooks for queries
hooks: true
}
}
]
}
}
}
export default config
i need fix this error Multiple exports with the same
Read more here: Source link
