
I set up the HelloWorldLightningWebComponent Project successfully (all the right files seem to be there), and the Trailhead org was successfully authorised (right confirmation message shown as per trailhead module).
Next step is where the problem occured - the SFDX Create Component command allowed me to put in the name of the File 'helloWorld' but the default folder offered was force-app/main/default/aura instead of force-app/main/lwc.
Leaving it at the default folder resulted in all the files created under the aura sub-folder, and do not reflect the example given I.e there is no
helloWorld.html
helloWorld.js
helloWorld.js-meta.xml
Instead a bunch of Aura type files are created, under the aura sub-directory.
I tried changing the folder to the lwc one, with the result that it just created a subfolder again with aura type files in there.
Does any one have any ideas why, and how to fix it? Im not going to be able to progress without the java .html files being created.. Any pointers would be much appreciated!
Some other (potentially) relevent info:
- CLI - VERSION sfdx-cli/7.8.1-8f830784cc darwin-x64 node-v10.15.3 (latest!)
- java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
- VIsual Studio Code Version 1.33.1 (1.33.1)
- VS extensions include Apex, Web Lightning Components,Salesforce Extension pack (latest)
8 answers
First line where you said has the issue:
SFDX: Create Lightning Component
You have to enter:
SFDX: Create Lightning Web Component
Can you please post the screenshot of your VSCode. Thanks for your suggestions. Hi Jacqui , Hi Jacqui Lee,