question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Couldn't find ethers-v5 (yarn workspaces)

See original GitHub issue

I’m getting the following error on the latest version of typechain:

Error: Couldn't find ethers-v5. Tried loading: @typechain/ethers-v5, typechain-target-ethers-v5, /home/k/Projects/work/optimism/packages/contracts/ethers-v5.
Perhaps you forgot to install @typechain/ethers-v5?

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.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
aspierscommented, Feb 15, 2022

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/*"
]
1reaction
hasparuscommented, Mar 18, 2022

Just FYI, I’ve made target resolution more robust in the new version, so this should (no guarantees) be solved after the release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Couldn't find ethers-v5 · Issue #423 - GitHub
I am getting this error after trying to generate typechain files out of my artifacts: Error: Couldn't find ethers-v5.
Read more >
@typechain/ethers-v5 - npm
@typechain/ethers-v5. TypeScript icon, indicating that this package has built-in type declarations. 10.2.0 • Public • Published 13 days ago.
Read more >
yarn workspace not update the local package (making eslint ...
Problem. I'm making custom eslint plugin referencing working with plugins and generator-eslint. Then I make a monorepo using yarn workspace ...
Read more >
@typechain/ethers-v5 | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
contract call: <unrecognizedcontract> - You.com | The AI ...
Error : missing revert data in call exception; Transaction reverted without a reason string [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found