0

I wanted to try out the local development Salesforce feature in VSCode. I am able to run the server, I am able to approach localhost:3333/ but I am unable to see any LWCs.

In our org we are not using the standard Salesforce folder structure. So the code is not located in force-app folder. Instead, in root of the project, we have src folder with the more-or-less same content as the force-app folder has.

So I have adjusted the sfdx-project.json file to this:

{
  "packageDirectories": [
    {
      "path": "src",
      "default": true
    }
  ],
  "namespace": "",
  "sfdcLoginUrl": "https://test.salesforce.com",
  "sourceApiVersion": "48.0"
}

But still, the preview displays no components. Any idea what could be wrong here? enter image description here

Thanks!

0

So apparently it is only possible to run the preview for SFDX projects. If the structure is not in DX, the preview won't run.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.