cannot read property outDir of undefined
See original GitHub issueteam, on running npx hardhat compile, I’m getting the error TypeError: Cannot read property 'outDir' of undefined
here are my dependencies:
here is my hardhat.config.ts:
here is my tsconfig.json:
on running npx hardhat compile
env: ubuntu lts, node lts, and latest npm
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
cannot read property outDir of undefined · Issue #401 - GitHub
Comments · team, on running npx hardhat compile, I'm getting the error TypeError: Cannot read property 'outDir' of undefined · here are my ......
Read more >javascript - TypeError: Cannot read properties of undefined ...
TypeError: Cannot read properties of undefined (reading 'getContractFactory') when testing contract · The error means that hre. · It seemed to ...
Read more >TSConfig Reference - Docs on every TSConfig option
Setting the value to undefined will allow most JavaScript runtime checks for ... When set to true, TypeScript will raise an error when...
Read more >API - esbuild
To join a set of files together with esbuild, import them all into a single ... This is because most code doesn't rely...
Read more >@typechain/hardhat - npm
This is an example of how to set it: module.exports = { typechain: { outDir: 'src/types', target: 'ethers-v5', alwaysGenerateOverloads: ...
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
For me this error happened after upgrading hardhat and typechain to most recent versions.
This is the diff of my rollback that solved the issue at the moment:
And I sometimes need to
rm -r node_modules
andpnpm i
🤔