Truffle compile: "Invalid input source specified." の解決法

問題:

➜ truffle-webpack git:(addmarketplacesolc) truffle compile --verbose
Compiling ./contracts/marketplace.sol...
Compiling ./contracts/networkmanager.sol...
Compiling networkmanager.sol...

Invalid input source specified.
Compiliation failed. See above.

 

解決策:

Worked: import "./networkmanager.sol";
Did NOT work: import "networkmanager.sol";

 

解決後:

➜ truffle-webpack git:(addmarketplacesolc) truffle compile -dev
Compiling ./contracts/marketplace.sol...
Compiling ./contracts/networkmanager.sol...
Writing artifacts to ./build/contracts

 

参考:

truffle compatibility? · Issue #79 · ConsenSys/singulardtv-contracts · GitHub

 

(過去のsolc versionでは、文法が真逆だった):