This is what happened to Germany. They tried going 100% renewables and then had Russia take up the slack for the rest of what they needed. Then they realized they had a massive shortfall and then was leaning far too much on Russia to take up the slack.
As someone else pointed out, geopolitics always weighs heavy in energy production. Just like in Germany's case where they relied too heavy on Russia for the shortfall of renewables, then Russia invaded Ukraine and Russia used their energy production as leverage to essentially blackmail Germany into not going along with UN sanctions against them.
However we need to get to total energy independence, I'm all for, and this whole idea it has to be one or the other only lengthens the process of getting there. In the mean time, it puts us in a precarious position to be involved with countries and regime's that don't like us and will never have our best interests in mind.