Solar panels should be able to last to around 20 years with the correct maintenance.
When the solar panels do begin to fail they can be replaced.