Skip to main content

I'm trying to complete "Use Visual Studio Code for Salesforce Development," in the trail "Quick Start: Visual Studio Code for Salesforce Development." 

 

After deploying from VS Code to Org, the "verify" error is, "We could not find Apex class named 'AccountController'."

 

After deploying I don't get "SFDX: Deploy Source to Org ... ended with exit code 0," just "ended SFDX: Deploy This Source to Org" but the UI states the command ran successfully, and AccountController.cls is most definitely present in VS Code and in the Org:Not able to completeExplorer:explorer-view.png

 

#Trailhead Challenges

2 件の回答
  1. 2024年8月26日 19:55

    Hi ,

     

    If you have multiple orgs connected or authorized in VSCode, then your code must be getting dpeloyed to one of the default org set.

     

    Try setting the org you want to use as default using below command:

     

    sfdx force:config:set defaultusername = 'Username that you want to use'

     

    And then confirm the list of orgs by using below command:

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8uZISAZ

     

    I'm also concerned about SSL warning.

     

    https://stackoverflow.com/questions/70365875/error-during-creation-self-signed-ssl-with-openssl

0/9000