forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
947 stars 404 forks source link

not able to find SFDX: Create Lightning Web Component command in VS code #831

Closed rbahadur closed 5 years ago

rbahadur commented 5 years ago

Summary

I am following the Steps to create "Create a Lightning Web Component" from Sales force trail head, and trying to create web component, but not finding any command in pallet to create it.

Steps To Reproduce:

1.In Visual Studio code, press Command + Shift + P on a Mac or Ctrl + Shift + P on Windows. 2.Type SFDX. 3.Search SFDX: Create Lightning Web Component.

  1. No command found.

Expected result

1.In Visual Studio code, press Command + Shift + P on a Mac or Ctrl + Shift + P on Windows. 2.Type SFDX. 3.Search SFDX: Create Lightning Web Component.

  1. Command should be available to create web component.

    Actual result

Describe what actually happened instead.

Additional information

Feel free to attach a screenshot.

VS Code Version: 1.30

SFDX CLI Version: 41.2.0

OS and version: Window 10 untitled

vazexqi commented 5 years ago

@rbahadur - I'm following along https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/set-up-visual-studio-code

Could you confirm that you have "Search for Lightning Web Components and click Install. If you already have it installed, then you just need to click on the Reload button. "

If so, could you confirm that it's running? You can do so by doing Ctrl + Shift + P > Developer: Show Running Extensions.

2018-12-17_22-11-12

no-response[bot] commented 5 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.

Rogeriohsjr commented 5 years ago

Hi @vazexqi , I would say that I don't see the option that is on Trailhead either, if I use Mac, if I use Windows I see it.

Here is the page that you asked: image

What I see is the SFDX: Create LWC Bundle, which I believe is the same, no? but for me this LWC bundle is not creating the component. :/. image

On Window side I got some problem but after I run sfdx plugins:install salesforcedx@pre-release it fixed, I tried it on Mac and didn't work.

Trailhead that I am following: https://trailhead.salesforce.com/content/learn/projects/quick-start-lightning-web-components/create-a-hello-world-lightning-web-component

Fitchburgh commented 5 years ago

I know this is closed, but I think I had the same issue. All you need to do when you create a new lwc is hit the refresh explorer button (standard refresh icon) on the left side explorer and it will show up. Cheers.

sunilcloud commented 5 years ago

I'm facing the same issue. I updated the CLI today. Could you check?

sunilcloud commented 5 years ago

I was able to resolve this after i installed the "Lightning Web Components Extension".

markgarg commented 5 years ago

I had the same problem and @vazexqi comment solved it. I searched and installed Lightning Web Components extension. This should have been added to the trailhead content!

dorawlf commented 4 years ago

I faced the same problem. I checked Lightning Web Components extension, it was enabled. I fix this issue by reinstalling CLI. Just for your information.

nehabhatia2384 commented 3 years ago

@Fitchburgh - Thank you! Refreshing the explorer solved this issue for me.

cmcprada commented 2 years ago

You need to create an sfdx project before, then further commands are displayed in VsCode. 1 - Command + Shift + P on a Mac 2 - SFDX: Create Project 3 - Type SFDX: Create Lightning Web Component Or type anything you want but first create the project.