Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File already exists issue for typescript version of hardhat #36

Open
MichaelFedorov opened this issue Jul 1, 2024 · 1 comment
Open

Comments

@MichaelFedorov
Copy link

MichaelFedorov commented Jul 1, 2024

I used basic steps for hardhat installation with their simple project. It seems hardhat-exposed doesn't work correctly for typescript version. I'm permanently getting an issue when running npx hardhat compile --force

Error: EEXIST: file already exists, mkdir '/Users/michaelfedorov/Documents/Blockchain/ERC20/contracts-exposed/ERC20.sol'
at Object.mkdirSync (node:fs:1372:26)
at mkdirpNativeSync (/Users/michaelfedorov/Documents/Blockchain/ERC20/node_modules/typechain/node_modules/mkdirp/lib/mkdirp-native.js:31:10)
at mkdirpSync (/Users/michaelfedorov/Documents/Blockchain/ERC20/node_modules/typechain/node_modules/mkdirp/index.js:21:7)
at /Users/michaelfedorov/Documents/Blockchain/ERC20/node_modules/typechain/src/typechain/io.ts:19:5
at Array.forEach ()
at processOutput (/Users/michaelfedorov/Documents/Blockchain/ERC20/node_modules/typechain/src/typechain/io.ts:17:13)
at runTypeChain (/Users/michaelfedorov/Documents/Blockchain/ERC20/node_modules/typechain/src/typechain/runTypeChain.ts:57:36)
at async SimpleTaskDefinition.action (/Users/michaelfedorov/Documents/Blockchain/ERC20/node_modules/@typechain/hardhat/src/index.ts:91:20)
at async Environment._runTaskDefinition (/Users/michaelfedorov/Documents/Blockchain/ERC20/node_modules/hardhat/src/internal/core/runtime-environment.ts:359:14)
at async Environment.run (/Users/michaelfedorov/Documents/Blockchain/ERC20/node_modules/hardhat/src/internal/core/runtime-environment.ts:192:14) {
errno: -17,
code: 'EEXIST',
syscall: 'mkdir',
path: '/Users/michaelfedorov/Documents/Blockchain/ERC20/contracts-exposed/ERC20.sol'

@frangio
Copy link
Owner

frangio commented Jul 7, 2024

Please share your Hardhat config. Are you using other plugins?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants