Precisely! The issue is storage.
There are many ways to create energy: solar, wind, water, nuclear (thorium!)...but storage is still unsolved. And Lithium is NOT the answer, not at the scale we need.
The storage problem is almost solved. Batteries/Supercaps with double the capacity, charge rate and lifespan of current Lithium-ions should be on the market soon.
Lithium-ion batteries are still at least $100/kWh (probably more like $300/kWh) and assuming a useful life of 1000 charge/discharge cycles, you're talking between $0.10 and $0.30/kWh just for the STORAGE! That doesn't even take into account the cost of generating the energy to begin with, nor the losses that come with charging and discharging the battery, nor the capital cost on the inverter that absolutely isn't free and definitely doesn't last forever.
Until storage can be had for a few cents per kWh storage is an unsolved problem.
I suspect that it will continue to be an unsolved problem for quite some time. Not because it's impossibly hard, but because getting oil or gas or coal out of the ground is so easy and has such large energy gain (output energy / input energy) that you have to be very clever to beat it.