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
Vijayakumar KenchugunduVijayakumar Kenchugundu 

Command 'SFDX: Create Lightning Web Component' resulted in an error (command 'sfdx.force.lightning.lwc.create' not found)

Friends,
I am trying to create LWC using VS Code. I am getting weird error msg.
"""Command 'SFDX: Create Lightning Web Component' resulted in an error (command 'sfdx.force.lightning.lwc.create' not found)"""
I tried to updating SFDX and uninstall/install Lightning Web Components extender. Still issue did not resolve. 
Thoughts to resolve my issue are much appreciated.
Best Answer chosen by Vijayakumar Kenchugundu
Suraj Tripathi 47Suraj Tripathi 47
Hi,

There must be a problem in salesforce CLI. Try to update your Salesforce CLI. Also, this will only work for developer and scratch org.

Thanks & Regards
Suraj Tripathi

All Answers

Suraj Tripathi 47Suraj Tripathi 47
Hi,

There must be a problem in salesforce CLI. Try to update your Salesforce CLI. Also, this will only work for developer and scratch org.

Thanks & Regards
Suraj Tripathi
This was selected as the best answer
Vijayakumar KenchugunduVijayakumar Kenchugundu
Hi Suraj, 
Thanks for your response. It resolved my issue. I reinstalled Salesforce CLI. It worked.