In the long run transitions like this work out and new jobs show up, but the people who had the old jobs don't always make the jump or keep equivalent pay.
Could be it shakes out in a generation or two, of course.