Open dwalker93 opened 3 years ago
Hi @dwalker93 and thank you for the report
Sorry but I'm not adding a lot here but just labeling it according to our new Contribution Guide and issue flow.
It seems already got into stage 1
thanks to your reproduction! Thank you for that!
Now in order to advance to stage 2
we'll need a failing test, would be great if someone could help progress the issues through the stages.
Thank you and sorry that this comment is not a complete solution (yet).
Anything on this one ?
Issue is reproducible with @graphql-codegen/cli v2.4.0
as well
still there's no solution for version above from 2.0. But you can downgrading cli to 1.21.7. It works fine with all other updated latest packages.
Describe the bug Codegen worked fine with "@graphql-codegen/add": "^3.1.0", "@graphql-codegen/cli": "1.21.7", "@graphql-codegen/typescript": "1.23.0", "@graphql-codegen/typescript-resolvers": "1.20.0", "@graphql-codegen/typescript-mongodb": "^1.19.5", and then accidently updated all packages to latest. Then got TypeError:
my codegen config
Retried with rollbacking to different versions and fixed the error with older versions. And again updated one by one to latest and found the bug in graphql-codegen/cli starting from v2.
Working Sandbox (With prev versions) : https://codesandbox.io/s/cranky-bush-ojj8p
To Reproduce Error Recreated in: https://codesandbox.io/s/relaxed-perlman-mdrwp
Environment: