We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"@subql/cli": "^5.3.3"
When using the Yarn nodeLinker: pnpm, the yarn dev command fails with,
nodeLinker: pnpm
yarn dev
Error: Cannot find module 'chalk' Require stack: - /opt/agoric/agoric-subql/node_modules/.store/@subql-cli-npm-5.3.3-f97be50ff8/package/bin/run
It looks like this is because the run module/script requires chalk but the package.json doesn't declare it. I.e. a ghost dependency
yarn install
Expected behavior: [What you expected to happen]
run runs
run
Actual behavior: [What actually happened]
I tried patching it up with this in .yarnrc.yml,
.yarnrc.yml
packageExtensions: { "@subql/cli@*": { dependencies: { chalk: "^4.0.0", }, }, "@subql/common@*": { dependencies: { "form-data": "^4.0.0" }, }, }
but there was yet another and I don't know how many ghosts there are.
A good way to find ghosts is to change the repo's nodeLinker to pnpm. You might also adopt Corepack for specifying the packageManger.
The text was updated successfully, but these errors were encountered:
I've added the missing deps in this PR, there is more work required to support other package managers
#2622
Sorry, something went wrong.
@stwiname this was closed "as completed" but as you point out, more work is required.
The title says “compatibility with pnpm linker” and the repo is still failing.
Mind reopening until the project is compatible with the pnpm linker?
No branches or pull requests
Prerequisites
"@subql/cli": "^5.3.3"
Description
When using the Yarn
nodeLinker: pnpm
, theyarn dev
command fails with,It looks like this is because the run module/script requires chalk but the package.json doesn't declare it. I.e. a ghost dependency
Details
Steps to Reproduce
yarn install
yarn dev
Expected behavior: [What you expected to happen]
run
runsActual behavior: [What actually happened]
I tried patching it up with this in
.yarnrc.yml
,but there was yet another and I don't know how many ghosts there are.
Any other information
A good way to find ghosts is to change the repo's nodeLinker to pnpm. You might also adopt Corepack for specifying the packageManger.
The text was updated successfully, but these errors were encountered: