ItsNickBarry / hardhat-dependency-compiler

📦 Compile Solidity sources directly from NPM dependencies
MIT License
38 stars 5 forks source link

'dependencyCompiler' does not exist in type 'HardhatUserConfig' #12

Closed songtianyi closed 2 years ago

songtianyi commented 2 years ago
hardhat.config.ts(17,7): error TS2322: Type '{ defaultNetwork: string; networks: any; solidity: string; dependencyCompiler: { paths: string[]; }; }' is not assignable to type 'HardhatUserConfig'.
  Object literal may only specify known properties, and 'dependencyCompiler' does not exist in type 'HardhatUserConfig'.
ItsNickBarry commented 2 years ago

I would guess that it's a tsconfig issue, and also that you didn't import the package in the hardhat config file. But there's not enough information here to be sure.