Coconut flour and all-purpose flour are not interchangeable on a one-to-one basis. Coconut flour is extremely “thirsty”.  It absorbs a lot of liquid.  If you’re using coconut flour, I recommend looking up recipes specifically designed for it.