ItsNickBarry / hardhat-dependency-compiler

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

Error HH306: The 'file' parameter expects a value, but none was passed. #7

Closed VittoriDavide closed 4 months ago

VittoriDavide commented 2 years ago

I'm getting this error when passing a .sol file,

dependencyCompiler: { paths: [ '@zircon/periphery/contracts/Token.sol', '@zircon/periphery/contracts/WETH.sol', // '@zircon/energy/contracts/*', '@zircon/energy/contracts/interfaces/IZirconEnergyRevenue.sol', '@zircon/energy/contracts/interfaces/IZirconEnergyFactory.sol', '@zircon/energy/contracts/ZirconEnergyFactory.sol', ], },

the error is invoked only in the last contract

ItsNickBarry commented 2 years ago

Do you have this import commented out? '@zircon/energy/contracts/*'

Using * in your imports won't work, though that doesn't seem to be related to the error message.

Need more information. What task are you running?