Solar does not work on large scale. It is fine for your home.
But the cost of storage makes solar even more financially STUPID as a main electrical source.
There will inevitably be new sources like fusion. Also better catalysts for solar fuel, and although those will require massive farms, they are storable and portable.
And dangerous. Imagine 1000 (just guessing) cell phone batteries sitting in your basement and one of them lighting off. Lithium fires burn hot.