Plugin typescript does not export a valid JS object with "plugin" function.
Make sure your custom plugin is written in the following form:
module.exports = {
plugin: (schema, documents, config) => {
return 'my-custom-plugin-content';
},
};
Following instructions found here https://github.com/dotansimha/graphql-code-generator/pull/6716 I can resolve the issue by installing @babel/runtime however this is not a could option as installing @babel/runtime causes other things in my code base to fail
Keep getting the following issue
my dependencies are as follows
and my codegen.yml is
Following instructions found here https://github.com/dotansimha/graphql-code-generator/pull/6716 I can resolve the issue by installing
@babel/runtime
however this is not a could option as installing@babel/runtime
causes other things in my code base to fail