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
Subodh Shukla 16Subodh Shukla 16 

how to resolve This page isn't available in Salesforce Lightning Experience or mobile app.

on first load of lwc component its showing 
This page isn't available in Salesforce Lightning Experience or mobile app. error how to resolve it.
ShivankurShivankur (Salesforce Developers) 
Hi Subodh,

Can you please share the LWC code as well on this thread to understand more about the issue and provide right suggestion?

Thanks.
Suraj Tripathi 47Suraj Tripathi 47
Hi Subodh,
you can use this code for provide the access to lightning__HomePage,lightning__AppPage,lightning__RecordPage...
Replace this code in place of your default XML code
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <apiVersion>51.0</apiVersion>
    <isExposed>true</isExposed>
     <targets>
        <target>lightning__RecordPage</target>
        <target>lightning__AppPage</target>
        <target>lightning__HomePage</target>
        
    </targets>
</LightningComponentBundle>
target set that where you can use this code.
---------------
If you find your Solution then mark this as the best answer. 

Thank you!
Regards,
Suraj Tripathi