I know there have been threads before about "Trekonomics" and I'm not looking to go down that route again, but if anybody ever invents something like the replicator a lot of traditional economic thinking will be quickly defenestrated.
Don't think it's not possible, 3D printing technology is getting A: better and B: cheaper every day.
This doesn't imply that you suddenly live in a post-scarcity world. Replicators are still costly to produce and energy is not available at zero cost either. Out on the frontier some starship might be engaged in a conflict on dilithium.
Sisko once mentioned transporter rations so what has changed in Trek is not merely technology but also the attitude of people. You need acceptance for something like rations, you need people to stop always wanting more. In econ-speak we see in Trek a change of technology as well as preferences.