Skip to main content

When I run this code with a different name (helloworld), it worked at first, but now it gives me an error like this.

 

20:01:37.571 Starting SFDX: Create Lightning Web Component

target dir = d:\salesforce\HelloWorldLightningWebComponent\force-app\main\default\lwc

   create d:\salesforce\HelloWorldLightningWebComponent\force-app\main\default\lwc\helloWorld\helloWorld.js

   create d:\salesforce\HelloWorldLightningWebComponent\force-app\main\default\lwc\helloWorld\helloWorld.html

   create d:\salesforce\HelloWorldLightningWebComponent\force-app\main\default\lwc\helloWorld\helloWorld.js-meta.xml

 

20:01:37.940 Finished SFDX: Create Lightning Web Component

20:03:06.931 Starting SFDX: Deploy Source to Org

 

=== Deploy Errors

PROJECT PATH  ERRORS                                                                        

────────────  ──────────────────────────────────────────────────────────────────────────────

              duplicate value found: <unknown> duplicates value on record with id: <unknown>

              Cannot find Lightning Component Bundle helloWorld.                            

              Cannot find Lightning Component Bundle helloWorld.                            

 

20:03:10.844 ended SFDX: Deploy Source to Org@

3 answers
  1. Khyati Mehta (InfinySkills) Forum Ambassador
    Nov 25, 2021, 1:39 AM

    Hi Tuba,

     

    Everything in Salesforce is highly case-sensitive. Highly recommend you to first check the labels and names properly. Secondly, Sakthivel mentioned it, there are chances that duplicate components are already there. The workaround is here to create a new project that retry your code!

0/9000