The problem is that solar has to replace fossil fuels, instead of being additional to fossil fuels. That is not going to work on a global scale, if we continue to use more and more energy to have a fast growing economy. At least the wealthy countries have to stop growing energy consumption and even lower it, to make it possible in a reasonable timeframe to go to net zero.
Long term we have enough of it, since solar panels last a long time and sunlight is basicly limitless. However that is long term. Short to mid term it is limited by the number of panels we have.