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
DarshanaDarshana 

Lightning Web Components - Not available in app builder

Hi Team,

I am stuck in this module. Module name: Create a Hello World Lightning Web Component.
I have created helloWorld LWC as instructed and deployed in org, but LWC is not showing in the app builder. I have checked below all possible scenarios.
1. Domain deployed - Yes it is
2. <isExposed>true</isExposed> - Yes
 
Please find attached screenshot and guide me where I need to correct them. 
User-added image
David Zhu 🔥David Zhu 🔥
Are you adding this component to a Lighting record page? if yes, you may need to add target configurations. i.e. add <object>yourObjectName</object>

<targetConfigs>
        <targetConfig targets="lightning__RecordPage">
            <objects>
                <object>Contact</object>
                <object>Lead</object>
            </objects>
        </targetConfig>
    </targetConfigs>
DarshanaDarshana
Hi David,
In the module we need to add on App Page i.e sales app page and in <target> it is included. Do I need to add <targetConfig> ?
David Zhu 🔥David Zhu 🔥
Not really.
You may copy the following to your lwc configuration file. It should work.
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>48.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__RecordPage</target>
        <target>lightning__AppPage</target>
    </targets>

</LightningComponentBundle>

 
DarshanaDarshana
Hi David,

I tried but didn't work. Even I tried with delete and again deploying, tried with new playground but still the same issue. I have raised the case to the trailhead now.