Open markedwards opened 1 year ago
Confirm this one. Fails with pnpm too.
ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies
../../apps/app
└─┬ @graphql-codegen/cli 2.13.5
└─┬ cosmiconfig-typescript-loader 4.1.1
└── ✕ missing peer ts-node@>=10
Peer dependencies that should be installed:
ts-node@>=10
Confirm the issue with pnpm too.
Adding the following hook fixes the problem:
// file .pnpmfile.cjs
function readPackage(pkg, context) {
if (pkg.name === "cosmiconfig-typescript-loader") {
pkg.dependencies["ts-node"] = "^10.9.1";
}
return pkg;
}
module.exports = {
hooks: {
readPackage,
},
};
Experiencing this issue aswell. I'm using yarn
Describe the bug
Yarn is spitting out the following complaint:
Can graphql-code-generator resolve this dependency?
Your Example Website or App
--
Steps to Reproduce the Bug or Issue
Expected behavior
As a user, I don't know anything about this child dependency or what to do about it. I'd like graphql-code-generator to sort it out.
Screenshots or Videos
No response
Platform
graphql
version: 16.6.0@graphql-codegen/*
version(s): 2.6.2Codegen Config File
No response
Additional context
No response