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'
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'