yarn graphql-codegen error ” require() of ES Module Y from Y not supported”

yarn graphql-codegen error ” require() of ES Module Y from Y not supported”

… graphql-codegen/cli”: “5.0.2”, “change-case”: “4.1.2”, “upper-case”: “3.0.0” }, “dependencies”: { “graphql”: “16.9.0” }, “type”: “module” }. and …

 

Read More