Skip to main content

Hello ,

I've installed VSCode with its sf extensions for the  lwc specialist superbadge). I've created a sandbox and installed the unlocked package. I've checked the schema builder and the components of the unlocked package are installed.

However, when I'm visual studio code, I can't retrieve the components from this sandbox. I've created a project with manifest, I've done a retrieve from the org in the xml file. It says it is ok. I've authorized the org , it says it's ok. When I authorize the org, I land on a page port 1717 localhost, with a successful message.

 

So my question is: how do you connect visualstudio code to your sandbox on Trailhead?

 

Thank you for your answer

 

#Visual Studio Code

3 respuestas
  1. 15 ene 2025, 3:00

    To retrieve the items from the unlocked package, use the Salesforce DX command 

    sf project retrieve start --package-name LWCPackage or explicitly declare them in your package.xml file to use the feature Retrieve Source in Manifest from Org.

    like this in package.xml:

    <types>

    <members>*</members>

    <members>BoatDataService</members>

    <members>SimilarBoatsController</members>

    <members>GenerateData</members>

    <name>ApexClass</name>

    </types>

0/9000