hardhat.config.js
compilers: [
{
version: "0.7.0"
},
{
version: "0.7.3"
},
{
version: "0.8.0"
},
{
version: "0.8.1"
},
]
},
编译时异常提示
npx hardhat compile Solidity 0.8.0, 0.8.1 are not fully supported yet. You can still use Hardhat, but some features, like stack traces, might not work correctly.
Learn more at "
Error HH606: The project cannot be compiled, see reasons below.
These files import other files that use a different and incompatible version of Solidity:
These files depend on other files that use a different and incompatible version of Solidity:
To learn more, run the command again with --verbose
Read about compiler configuration at
For more info go to or run Hardhat with --show-stack-traces