0

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 2

0

I am able to resolve by uninstalling and reinstalling the Salesforce CLI from installed program on machine.

  1. Uninstall Salesforce CLI from installed program. Do not do it through VSCode.
  2. Download exe again from Salesforce https://developer.salesforce.com/tools/sfdxcli and install again.
Sign up to request clarification or add additional context in comments.

Comments

0

1- Uninstall Salesforce CLI

2- Go to windows explorer and use this path "%LOCALAPPDATA%\sfdx"

3- Delete all the files from there

4- Reinstall Salesforce CLI

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.