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:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@krzkaczor but the hardhat documentation still mentions the old package that’s what’s misleading people