Skip to main content

Create a Hello World Lightning Web Component > Deploy to Your Trailhead Playground >> Not getting option to - SFDX: Deploy Source to Org as per the steps mentioned

1 件の回答
  1. 2021年7月12日 19:34

    Hi Ankit,

     

    Close the VS code and relaunch it, now wait for 1min/till Salesforce extension get loaded.

    After that click ctrl +shift +p  -> select SFDX: Deploy this Source to Org from the Command Palette to deploy the source code.

     

    If this doesn't work then right click on html code & select SFDX: Deploy this Source to Org option

     

    If above both option doesn't work then use VS code terminal to fire a command to deploy the code:

     sfdx force:source:deploy -p force-app -u OrgNameWhichWasCreated

     

    Refer below blog for more commands for LWC creation/deployment methods:

    https://sfdcmonkey.com/2019/02/15/lightning-web-component-deploy-org/

     

    Hope this helps you.

    If you find your Solution then mark this as the best answer. 

    Thank you..!