Error deploying or ...
 
Notifications
Clear all

[Solved] Error deploying or retrieving source: vs code salesforce cli

2 Posts
1 Users
0 Likes
328 Views
Posts: 205
 CWL
Admin
Issue starter
(@cwl)
Member
Joined: 11 years ago

Getting this error:

Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package directory that's specified in your sfdx-project.json file. Add this location to your "packageDirectories" value, or deploy or retrieve a different file or directory. For details about sfdx-project.json, see: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.
Issue Tags
1 Reply
Posts: 205
 CWL
Admin
Issue starter
(@cwl)
Member
Joined: 11 years ago

I had to downgrade Salesforce CLI Integration extension in vs code from 56.5.1 to 55.8.0 and that solved the issue. 

To downgrade, click on extensions tab on vs code, select CLI Integration extension, click the arrow next to install and select another version to install, then click the reload required button on the extension and if needed re-start vs code. 

Reply
Share: