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.

Cannot find module 'typechain/dist/TypeChain'

See original GitHub issue

‘typechain/dist/TypeChain’ doesn’t exist in typechain(version 5.0.0) library.

My package.json list as follow:

"devDependencies": {
    "@nomiclabs/hardhat-ethers": "^2.0.2",
    "@nomiclabs/hardhat-waffle": "^2.0.1",
    "@typechain/ethers-v5": "^7.0.1",
    "@types/chai": "^4.2.19",
    "@types/mocha": "^8.2.2",
    "@types/node": "^15.12.4",
    "chai": "^4.3.4",
    "ethereum-waffle": "^3.4.0",
    "ethers": "^5.3.1",
    "hardhat": "^2.4.0",
    "hardhat-gas-reporter": "^1.0.4",
    "hardhat-typechain": "^0.3.5",
    "ts-generator": "^0.1.1",
    "ts-node": "^10.0.0",
    "typechain": "^5.0.0",
    "typescript": "^4.3.4"
  }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

18reactions
incrypto32commented, Jun 23, 2021

Ok this issue was because i still used the ‘hardhat-typechain’ which is no longer maintained i guess the new official one is @typechain/hardhat . I see that @Tinalst also uses this one.

5reactions
incrypto32commented, Jun 23, 2021

Yes. hardhat-typechain was migrated to this repo. There is a deprecation note on the repo i believe.

@krzkaczor but the hardhat documentation still mentions the old package that’s what’s misleading people

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'typechain/dist/TypeChain' #409 - GitHub
'typechain/dist/TypeChain' doesn't exist in typechain(version 5.0.0) library. My package.json list as follow: "devDependencies": ...
Read more >
@typechain/hardhat - npm
Start using @typechain/hardhat in your project by running `npm i ... There are 79 other projects in the npm registry using @typechain/hardhat.
Read more >
I can't get "Typechain" folder when I install dependencies ...
Run npx hardhat compile to generate the typechain folder when using hardhat with solidity. As seen in the "Tasks" section of ...
Read more >
@typechain/hardhat - npm Package Health Analysis | Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix advice.
Read more >
How can I create the typechain directory in my hardhat project?
gives me the Type-error: Type 'Contract' is missing the following properties from type 'Example': ... in the pen-ultimate line. I have - amongst ......
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