Economics is not money. Its about how to allocate the limited resources in the most efficient way. Money is just a tool used for example in capitalism.
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)