Solar panels are piss-cheap to make. They are literally just glass with a transistor on them (huge oversimplification)

All of the materials used are readily available and manufacturing is not incredibly difficult. Inverters and control circuitry is way more of a risk than the panels themselves but there are stockpiles and sources that are good for many places