For large amounts of power: batteries suck, are very vulnerable and are quite heavy, large generators are extremely noisy and not very portable, and the power grid is vulnerable and under constant attack. None of these are particularly viable in heavy combat, therefore directed energy weapons are generally not viable except when you are not in heavy combat, which is exactly when you would really need them to work.
For large amounts of power: batteries suck, are very vulnerable and are quite heavy, large generators are extremely noisy and not very portable, and the power grid is vulnerable and under constant attack. None of these are particularly viable in heavy combat, therefore directed energy weapons are generally not viable except when you are not in heavy combat, which is exactly when you would really need them to work.