This question already has an answer here:
- Why can't cloaked vessels shoot? 10 answers
In Star Trek the Undiscovered Country, Scotty says: "raving lunatics they'll call us, willing to say anything to exonerate the captain" - all in regards to claiming that a Klingon Bird of Prey can fire while cloaked. Of course, we learn later that there is a new Bird of Prey that actually can fire while cloaked, but that this is something new. Anyway, from this statement by a well-respected engineer in the Star Trek universe, I understand there was some technical reason why a ship in cloak cannot fire weapons.
Was it ever explained why ships can't fire when cloaked?