Just as with coal mines, uranium mines and oilfields, there's a large upfront cost ... but a much lower cost to the environment.
Furthermore, anyone can create solar-powered electricity, anywhere. There will be no wars over access to sunlight. Sunlight is a democratic power source, which cannot be monopolized by special interests. Nomads in Mongolia make their own electricity. Anyone living near a creek can make their own hydro ... thousands do.
Once renewables are built, apart from maintenance, the cost of the energy and its transport is free, and (apart from recycling costs) pollution-free. It will continue to be free until the generator has to be replaced, some stupid war destroys it, and/or the Sun burns out. Too obvious for some interests.
Attempts to distort these facts, to maintain monopolies and continue to enrich a very few, will persist. It's easy to invent lies and distortions and to spread FUD about renewables. Yep, there's a lot at stake. For a few.
But what's best for the biosphere and its people? For the people of the future, including our kids and grandkids? For all the lifeforms, the water sources, and the atmosphere of the planet? The answer is renewable -- and the technology to support its generation and storage is a superior and long-lasting investment.