apollo-tooling
apollo-tooling copied to clipboard
[codegen] Maximum call stack size exceeded while generating type files (typescript)
I'm using apollo's codegen for a few months but recently got this error:
$ ❯ apollo client:codegen --target=typescript --watch --tagName=gql --addTypename --globalTypesFile=types/graphql-global-types.ts types
✔ Loading Apollo Project
✔ Generating query files with 'typescript' target - wrote 47 files
RangeError: Maximum call stack size exceeded
Any idea where that could come from? Or how to get more information (debug logs)?
Thanks
I found that the following fixed my issue (even though we don't have any graphql query in our .ts
files):
module.exports = {
client: {
+ includes: ['**/*.tsx'],
- includes: ['**/*.ts', '**/*.tsx'],
},
};
Just for curiosity, what file is this?