At least some presentations of Star Trek (or, at least, Federation) "economics" were that it was not economics; not having money was a symptom of that, but the fundamental thing presented was that scarcity was solved because resources were not practically limited (which is why they didn't have money.)
(Of course, there was a whole lot presented at other times that seems to be at odds with that.)
interestingly enough in star trek they still have constraints on things like dilithium, and of course wars are waged over territories
you forgot the Continuum - they have no scarcity at all, so no economics (yet, surprise!, they still have politics)
"Star Trek economics" was an incoherent mess where the explanations given didn't match what people were actually shown doing.
I suppose, in that respect, its pretty much like economics everywhere.