function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Raghu Ch 2Raghu Ch 2 

Error deploying or retrieving source while deploying LWC to salesforce org

Hi, I am getting the below error when i try to deploy the sample bikes application to the salesforce org. 


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.htm

Below is my sfdx-project.json file

{
    "packageDirectories": [
        {
            "path": "C:/Users/raghu.cheruvu/Documents/ebikes-lwc-master/force-app",
            "default": false
        }
    ],
    "namespace": "",
    "sourceApiVersion": "47.0"
}

Let me know if something else needs to be configured