Very much this. We were in the middle of designing and installing a total solar array for our farm when the state ended every single subsidy and electricity buyback plan. We could install all the solar panels we want, but any electricity we pump into the grid is done for free (we don't get paid) and any power we take from the grid we pay 100% for with no credit for any power we pushed upstream.
This forced us to increase the panel array size by another 25% to 30% to make sure we had more coverage, increase the battery storage we needed, and increased the breakeven point to more than 30 years.
We decided to not do it. For a world that needs more renewable energy (I sort of hate that term) politicians work awful hard to make it not happen.