function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Big EarsBig Ears 

SFDX - Lightning Web Components trailhead issue - Scratch Orgs being created as Sandboxes

Hey all,

I'm working my way through the "Lightning Web Components Basics" trailhead and I've been directed to the following resource:

https://github.com/trailheadapps/ebikes-lwc#installing-e-bikes-using-salesforce-dx

As part of that, we need to create scratch orgs. However, the scratch orgs being created from my dev hub are marked as "Sandbox" and also seem to be stuck in Classic, so I can't progress.

I've updated to the latest versions of the SFDX CLI and plug-ins, so I'm not sure what the issue is here.
Raj VakatiRaj Vakati
Change your sfdx-project.json as shown below
 
{
  "packageDirectories": [
    {
      "path": "force-app",
      "default": true
    }
  ],
  "namespace": "",
  "sfdcLoginUrl": "https://login.salesforce.com",
  "sourceApiVersion": "45.0"
}


Refer this links

https://rajvakati.com/2018/12/22/lightning-web-components/