When I run truffle compile, it throws the following error: Invalid input source specified.

enter image description here


1 Answer 1


That is typically caused by a bad import statement. Check that something isn't being included incorrectly. A good example would be something like:

import 'MyContract.sol';

as opposed to

import './MyContract.sol';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.