Open smartcontracts opened 2 years ago
I had this too. It went away when I bumped typechain from 5.2.0 to 7.0.0 but that was probably just luck.
Turns out it was just luck indeed. The issue randomly reappeared later even after upgrading to 7.0.0. After much trial and error, the only thing which fixed it for me was:
"nohoist": [
"**/typechain",
"**/@typechain/*"
]
@smartcontracts does @aspiers fix work for you? yarn monorepos can be a mess...
I'll give this fix a shot tomorrow and report back to you!
@smartcontracts let me know. Also if you have a PR that I can look at that it could make debugging easier.
My bet would be that yarn decided to spread dependencies into a different tree after the upgrade and that's why it doesn't work now (note that waffle has a dependency on the old typechain version which make also affect your case).
Just FYI, I've made target resolution more robust in the new version, so this should (no guarantees) be solved after the release.
I'm getting the following error on the latest version of typechain:
This is happening within a yarn/lerna monorepo. It appears this is happening because the
typechain
package is being hoisted to the root level, but the@typechain/ethers-v5
package is not.