Duplicate Identifier in src/**/graphql.ts #8709
-
|
Hi Guys, I'm getting tons of Duplicate Identifiers Errors in graphql.ts file.
I ran |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
the problem in here seems to be related to i removed the seems to be working now... |
Beta Was this translation helpful? Give feedback.
-
|
I have the same issue with mutations. All mutations appears as duplicated name. This is my configuration file (codegen.ts): import type { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
schema: 'schema.graphql',
documents: ['src/gql/**/*.ts', '!src/gql/types/**/*.ts'],
ignoreNoDocuments: true,
generates: {
'./src/gql/types/': {
preset: 'client',
presetConfig: {
gqlTagName: 'gql',
fragmentMasking: false,
},
config: {
useTypeImports: true,
dedupeFragments: true,
enumsAsTypes: true,
},
plugins: [],
},
},
hooks: { afterAllFileWrite: ['eslint --fix'] },
};
export default config;Any idea how to resolve this? |
Beta Was this translation helpful? Give feedback.


the problem in here seems to be related to
codegen.ymli removed the
preset: "client"and changed generates to./src/gen/graphql.tsseems to be working now...