Notifications
Clear all
Nov 22, 2022 11:24 am
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.
1 Reply
Nov 22, 2022 11:50 am
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.