1

I have Lightning Web Components called myList, and when I try to do SFDX: Retrieve Source from Org, to get my classes from Apex class, I get the following error:

20:32:09.428 Starting SFDX: Retrieve Source from Org === Retrieve Warnings FULL NAME TYPE MESSAGE
───────── ────────────────────────
──────────────────────────────────────────────────────────────────────
myList LightningComponentBundle Entity of type 'LightningComponentBundle' named 'myList' cannot be found
20:32:10.344 ended SFDX: Retrieve Source from Org

And something else. If I'm trying to do SFDX: Retrieve Source from Org and I have no Lightning Web Components in the lwc folder, I get the following error:

19: 21: 30.12 Starting SFDX: Retrieve Source from Org
No components in the package to retrieve

I do not understand the connection between Retrieve Source from Org and Lightning Web Components in the project. I would love an explanation!

2
  • What is exact command you are running and if you have what is package.xml can you share that? Oct 26, 2021 at 16:33
  • 1
    Note for others: Based on the commands included in the question, these are being executed from the command palette of VS Code.
    – Derek F
    Oct 26, 2021 at 16:36

1 Answer 1

3

I created a new project with the command: SFDX: Create Project with Manifest.

Then right-click on the package.xml file in the manifest folder, and select SFDX: Retrieve Source in Manefist from Org.

It worked.

1
  • Thanks! It used to work on new projects just from the source root. Seems like it can't find the package.xml.
    – Alexx
    Jun 28 at 16:47

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.