The only time when their economy breaks is when they're in an active warzone - and frankly, currency as we know it breaks down in a warzone too, you better have some cigarettes, food or weapons if you want to trade.
Then you have the species whose backstory is imperialism or fascism, that control many other species that only have lesser technology. In some episodes, but especially in the books that are considered canon, you can see them influencing (slowing or outright destroying) the development of sufficient technology of their vassals so they remain dependent on the masters.
But the masters themselves (Romulans, Cardassians, Klingons...) have the same post-scarcity economy as the Federation for their "full citizens".
What's interesting is the case of Bajor in DS9, which is developing the post-scarcity utopia after the Cardassians left them in ruins; with Federation help but not too much of it because they want to be independent.
Good guys like the Vulcans seem to have only personal and psychological problems, not material ones.
I always thought it was interesting that the scarce resources you could get at Quark's were non-material (companionship, holodeck experiences, games, etc). The only defining characteristic of the substance the Ferengi use as currency is that it can't be produced by a replicator, which implies that everything else (including all the expensive bottles behind Quark's bar) could be.
The dirty secret is that Starfleet is actually a totalitarian military dictatorship, on the ground and in the air. That's how they got to take over the Palace of Fine Arts.
Sisko asked Quark just before he left to remain where he was since the Cardassian occupation so there was some life on the promenade.
> The dirty secret is that Starfleet is actually a totalitarian military dictatorship, on the ground and in the air. That's how they got to take over the Palace of Fine Arts.
Starfleet is a paramilitary organization and Deep Space 9 is a military installation under their control (it has sufficient firepower to defend itself against many of the strongest warships), just like the starships - that's no secret nor is it dirty. There can be civilian elements on military bases. IRL there are civilians living within military areas in some countries - governed/commanded by the military.
But SF doesn't control the Federation, nor Earth or other civilian settlements. There is an episode where Sisko and Odo thwart the attempt of a rogue Starfleet admiral to get Earth under SF/his control.
Ian M. Banks does a good bit on this in one of the Culture books (Look to Windward, I think) where the Culture "reinvents money" in the form of IOUs over access to a particularly popular live event.
I did have a problem with the retconning where the Federation was never even partially capitalist at all, because The Original Series is full of allusions to the fact that it is: An immortal being (Flynt) who buys his planet outright, miners who make more profits once they start working with the Horta, etc., etc.