Do you
wonder why your new custom lightning component is not showing up in the app builder?
Then it must be because of these two reasons.
- When my domain is not enabled in the sandbox.
- When there is no flexipage attribute added in the lightning component
My
domain is important for the security of the lightning salesforce application, check out detailed instructions on how to enable my domain in your salesforce org
In case
if it is already enabled, check out the flexipage attribute in your lightning
component and make the changes accordingly.
Default code
<aura:component>
</aura:component>
Make changes as highlighted below
<aura:component implements="flexipage:availableForAllPageTypes">
<!-- Your complete code goes here -->
</aura:component>
above shown code works for the Aura components.
For
lightning web components, use the below mentioned code in the metadata file.
<targets>
<target>lightning__AppPage</target>
<target>lightning__RecordPage</target>
<target>lightning__HomePage</target>
</targets>
Hope
this works. I appreciate your comments or any queries in
the comments section below.
ALSO READ
2 Comments
The reason might be not activated page and my case was meta.xml file was set to FALSE.
ReplyDeleteIt was supposed to be set tot TRUE to appear on the lightning component
true
Thanks for adding this.
Delete