Yes, the candlemakers hate the sun. But cheap computers put dinosaurs like DEC out of business, but the industry thrives.
Your comparison is not apt. DECs were replaced by PCs. Petro-energy is not being replaced; it’s just becoming more and more plentiful so the price is coming down. That benefits some and hurts others, but ultimately ends as a wash.