You are basically saying "learn to code" aren't you?
No,
We advance as a society toward better technology, because of said technology some jobs become less useful, thus people losing their jobs, but new technology also bring new jobs, those jobs pay better and corporations make more profit at the same time.
Those losing their jobs have to find a new one that fits within their skill sets, it sucks but that's how it as always been.
To some extent you're right, in the sense that markets evolve with the times and businesses need to keep up with new trends and technologies to survive. However, that is typically a natural shift driven by the free market. Where you run into problems is when the government chooses the winners and losers, forcing people out of jobs where there is still market demand. I'm not going to say that this is always wrong, but you'd better believe that there are going to be repercussions when people lose their jobs because some schmuck politicians have an agenda that they want to force upon everyone else.
I've always said that if you want green energy to become mainstream, it needs to be cheap, efficient, and readily available. The Left has been trying to push expensive and inefficient technologies and punish those who don't adapt, which has only galvanized the opposition to the point where many are against green energy on principle. What they have basically said is this:
"All these cheap energy sources you're using? They're going to kill us all! We're going to tax and regulate the crap out of you until you fix it. Some of you are going to lose your jobs, but boo hoo. Learn to code."
What they could have said is something like this:
"Hey, we're proposing an initiative that would reallocate existing funds to support R&D for new technologies that aim to surpass current energy sources by providing more energy at a lower price. As added benefits, they will be better for the environment, provide a technological edge to our country, and increase the quality of life for all citizens. While this may negatively affect existing energy industries and their employees, we will do everything in our power to ease the transition when that time comes. Until then, it's business as usual."
Libertarian-leaning folks would probably be against that because the government would still be interfering in the market, but that kind of messaging would have had a much more positive impact on the politics of alternative energy, as opposed to this doom and gloom, shove-it-in-your-face nonsense we're seeing now.