VSCode is using for Salesforce development and couple of days back this issue is started whenever I am try to Deploy and retrieve changes from Org to my VScode Connected org. It is throwing Error Cannot read property 'getInstance' of undefined. Can anyone please help to resolve this.
2 Answers
I am able to resolve by uninstalling and reinstalling the Salesforce CLI from installed program on machine.
- Uninstall Salesforce CLI from installed program. Do not do it through VSCode.
- Download exe again from Salesforce https://developer.salesforce.com/tools/sfdxcli and install again.