Two things have happened in this area recently.
1. The grams of rare earths required per watt of solar have been dropping steadily. And Solar PV panels with no rare earths at all have been developed, though they are not yet common.
2. "Rare earths" are not so rare. Their prices have tumbled substantially as new mines have opened up and substitutes have been found.