Did Trek ever establish in canon whether complex equipment could even be replicated. In TNG, I thought the answer was no.
It's a interesting question. There are things a replicator can't make at all (some pharmaceuticals), and other things that can
be produced, but it takes the replicator time to do so. I can't remember a replicator making say a medical tricorder, I think it could, but how long to make dozens?
We're not talking about a cup of tea.
This HAS to be something that the writers had to grapple with. A device such as the replicator would need to have limits or some restrictions on use, lest it become the out for every problem the crew faced. Borg invasion? Just replicate ships! Data's dead? Replicate him... and so on.