1

I am creating my first LWC component. While doing so When i run create LWC component command and then enter component name then I am getting an another input saying "There are no entries to pick from" Enter desired directory.

I have tried entering force-app/main/default/lwc, force-app, LWC/force-app/main/default/lwc but nothing in working. enter image description here

My project.json is

{
  "packageDirectories": [
    {
      "path": "force-app",
      "default": true
    }
  ],
  "namespace": "",
  "sfdcLoginUrl": "https://login.salesforce.com",
  "sourceApiVersion": "45.0"
}

I am running a windows machine.

7
  • Version of vscode and extension pack ? Also what happens when you just run the command to create the bundle via the cli? Commented Feb 25, 2019 at 16:09
  • "sfdx force:lightning:component:create -n mycomponent --type lwc" on running this command error i am getting is "Lightning bundles must have a parent folder named 'lwc'." Commented Feb 25, 2019 at 16:31
  • What's the DX plugin version ? Commented Feb 25, 2019 at 16:32
  • Run sfdx plugins and see your vesrion Commented Feb 25, 2019 at 16:33
  • VS code is v1.19.3 and and while going through Extension i found out that Salesforce extension requires VS code v1.26 and higher. I will update and check again Commented Feb 25, 2019 at 16:37

1 Answer 1

1

enter image description hereSalesforce extensions pack only work for VS v1.26 and above.

Also for windows user add java runtime environment path. "Java runtime could not be located" when starting VSCode with the Salesforce Extensions

Check for version of java like for me it was "jre1.8.0_181"

"salesforcedx-vscode-apex.java.home": "/Program Files/Java/jre1.8.0_181"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .