>>7869901>>7869911photovoltaic cells for consumer solar panels are made of monocrystalline-silicon that's not rare at all. for a solar panel you also need glass, some plastic for the backside and copper wiring, maybe an aluminum frame, essentially you need the same materials you need for a window.
Also need some electronics if you want to connect it to a grid or store power in a battery. These might contain trace amounts of rare earths. But if you are concernded about this you should not use computers, internet, mobile phones or any modern technology at all.