Once deployed, I can see the component from the Home page in Custom Code > Lightning Components > Lightning Components, however when I Edit the Sales Page (or any other) it is not under Custom components to be dragged onto the page?!
I have spent hours on this, reading articles like these below, and trying all their suggested options, but have been unable to find a solution to this fundamental problem?
Same issue (seems common), however no help:
https://developer.salesforce.com/forums/?id=9062I000000QvQUQA0
https://success.salesforce.com/answers?id=9063A000000E6hFQAS
Lightning Web Components – Not available in app builder
Any help would be appreciated?
<?xml version="1.0" encoding="UTF-8" ?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="helloWorld">
<apiVersion>45.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__RecordPage</target>
<target>lightning__AppPage</target>
<target>lightning__HomePage</target>
</targets>
</LightningComponentBundle>
Best Answer
Although you are exposing to the type of page (app,record and object home), You should also mention which objects in specific contexts in
targetConfigs
.For example, below is sample code which exposes to record page in Account and Opportunity: