# Truffle: CompileError: InternalCompilerError: Compiled contract not found

**URL:** <https://forum.openzeppelin.com/t/truffle-compileerror-internalcompilererror-compiled-contract-not-found/3954>\
**Category:** Support\
**Created:** [September 27, 2020, 7:27pm UTC](https://forum.openzeppelin.com/t/truffle-compileerror-internalcompilererror-compiled-contract-not-found/3954 "2020-09-27T19:27:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pradhumnya](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/pradhumnya/32/3106_2.png) [@Pradhumnya](https://forum.openzeppelin.com/u/Pradhumnya)\
**Post date:** [September 27, 2020, 7:27pm UTC](https://forum.openzeppelin.com/t/truffle-compileerror-internalcompilererror-compiled-contract-not-found/3954/1 "2020-09-27T19:27:12Z")

</div>

`CompileError: InternalCompilerError: Compiled contract not found.`

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

---

<div class="post-metadata">

**Author:** ![Pradhumnya](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/pradhumnya/32/3106_2.png) [@Pradhumnya](https://forum.openzeppelin.com/u/Pradhumnya)\
**Post date:** [September 27, 2020, 7:59pm UTC](https://forum.openzeppelin.com/t/truffle-compileerror-internalcompilererror-compiled-contract-not-found/3954/2 "2020-09-27T19:59:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![abcoathup](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/abcoathup/32/415_2.png) [@abcoathup](https://forum.openzeppelin.com/u/abcoathup)\
**Post date:** [September 28, 2020, 2:04am UTC](https://forum.openzeppelin.com/t/truffle-compileerror-internalcompilererror-compiled-contract-not-found/3954/3 "2020-09-28T02:04:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Pradhumnya](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/pradhumnya/32/3106_2.png) [@Pradhumnya](https://forum.openzeppelin.com/u/Pradhumnya)\
**Post date:** [September 28, 2020, 5:44am UTC](https://forum.openzeppelin.com/t/truffle-compileerror-internalcompilererror-compiled-contract-not-found/3954/4 "2020-09-28T05:44:47Z")

</div>

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.
