Skip to content

Commit

Permalink
Fix pnpm wrongly handling deep peer deps
Browse files Browse the repository at this point in the history
The @nomiclabs/truffle-contract package has peer dependencies on
web3-eth-abi and web3-utils that for some reason are not being met by
pnpm@9 (it complains that it can't find compatible versions, which is a
lie).

Installing the proper 1.10.4 versions as dev dependencies of
@nomiclabs/hardhat-truffle5 seems to fix the problem.
  • Loading branch information
fvictorio committed May 30, 2024
1 parent 3c27724 commit b45eb94
Show file tree
Hide file tree
Showing 2 changed files with 443 additions and 426 deletions.
4 changes: 3 additions & 1 deletion packages/hardhat-truffle5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
"rimraf": "^3.0.2",
"ts-node": "^10.8.0",
"typescript": "~5.0.0",
"web3": "^1.0.0-beta.36"
"web3": "^1.0.0-beta.36",
"web3-eth-abi": "1.10.4",
"web3-utils": "1.10.4"
},
"peerDependencies": {
"@nomiclabs/hardhat-web3": "workspace:^2.0.0",
Expand Down

0 comments on commit b45eb94

Please sign in to comment.