Truffle: CompileError: InternalCompilerError: Compiled contract not found

CompileError: InternalCompilerError: Compiled contract not found.

I cannot run ‘truffle compile’. Calling ‘truffle compile’ gives me the above error. Please help.

1 Like

Deleting the build folder and re-compiling removes the error.
Or use rm build

1 Like

Hi @Pradhumnya,

I am glad that you were able to resolve. I have marked your reply as the solution.

What were you compiling when this error occurred?

I was compiling the RefundablePostDeliveryCrowdsale.sol contract from OpenZeppelin’s v2.5.0. I inherited this in my tokenSale contract and I tried to override _processPurchase() and _forwardFunds() in it. While compiling this error popped up.

1 Like