I am trying to retrieve the Salesforce metadata in VS Code with the below command,
sfdx force:source:retrieve -x ./manifest/package.xml
This was working fine prior to today, but suddenly I have started getting the below error:
ERROR running force:source:retrieve: Cannot read property 'id' of undefined
I have recreated the project repository and tried this again, but no success.
Below is the package.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>ApexClassName</members>
<name>ApexClass</name>
</types>
<version>51.0</version>
</Package>
How can the above error be resolved. Any idea?