This is a major point of automation. Yes, many jobs will be lost. But the prices of many goods will decrease.
The problem is that the current transition threatens to be so rapid as to seriously disrupt society. Perhaps new jobs will eventually be created to make up for those lost to automation (or perhaps not), but they won't be created fast enough to avoid the pain of all the rapid job losses that are coming.
Thankfully, society seems to be coming around to the idea that resistance is futile, and we need to address this problem before it becomes too overwhelming. Personally, I feel one of the most realistic options would be to reduce the standard work week to 4 days and/or 30 hours. People need to be kept busy, or society overall tends to start to crumble around the edges. This would mean people will need to shift their perspective on income, as it will likely be reduced. But this shouldn't be too bad, since all the automation will likely lead to reduced prices all around. Reducing your income by 25% may sound bad, but if practically everything becomes ~20-30% cheaper then you should have essentially the same standard of living, but with fewer working hours. Isn't that what we more or less would all like?
No matter what we wind up doing however, chances are there will be some period of difficult transition. All we can hope to do is make it as short and relatively painless as possible.