I am currently working in a dev org and I have installed the LWC e-bike component (https://github.com/trailheadapps/ebikes-lwc/tree/master/force-app/main/default/lwc/orderBuilder)

When I create the sfdx project and retrieve the metadata the folder for LWC is empty.

If I create a new LWC through sfdx, it is created without a problem, however, I notice that it is not like lightnining components, were if you manually delete a file you can right click in the folder and hit retrieve and the files appears again.

Is there a trick to be able to retrieve these metadata?

I have added the below into the manifest, as that is what the documentation says that represent the Lightning web component bundle


But it doesnt do a thing

EDIT This is my current version when i run

sfdx plugins --core

enter image description here

  • Are you using the latest version of the CLI ? If you run "sfdx plugins --core", what versions are you using ? – Fabien Taillon Feb 11 at 9:16
  • @FabienTaillon I have added an image with the result of running "sfdx plugins --core", I am pretty sure I am running the latest one – manza Feb 11 at 22:34
  • Can you try to uninstall the pre-release (sfdx plugins:uninstall salesforcedx) ? Since yesterday LWC is part of the core sfdx CLI, maybe you'll need to run sfdx update but the pre-release isn't needed anymore. Also, are you on Windows ? There is an ongoing bug currently: github.com/forcedotcom/salesforcedx-vscode/issues/1023 – Fabien Taillon Feb 12 at 9:16

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.