After upgrading @typechain/hardhat and ethers-v5 an issue arose: Duplicate identifier. This happened for a single struct in one contract, and all contracts inheriting from said contract.
PayoutsStruct is a custom struct, and is being imported 2x from the auto-generated contract file SomeContract .
The command being run is:
yarn cross-env TS_NODE_TRANSPILE_ONLY=true hardhat typechain
The error seems to be created only by the versions of typechain/ethers-v5 and typechain/hardhat. When reverted back to ^7.0.1 and ^2.3.0 respectively, the errors vanish.
After upgrading
@typechain/hardhat
andethers-v5
an issue arose:Duplicate identifier
. This happened for a single struct in one contract, and all contracts inheriting from said contract.The error occurs with the following
package.json
:The error given is:
PayoutsStruct
is a custom struct, and is being imported 2x from the auto-generated contract fileSomeContract
.The command being run is:
yarn cross-env TS_NODE_TRANSPILE_ONLY=true hardhat typechain
The error seems to be created only by the versions of
typechain/ethers-v5
andtypechain/hardhat
. When reverted back to ^7.0.1 and ^2.3.0 respectively, the errors vanish.