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
Sebastian MelginSebastian Melgin 

Lightning Web Components Basic > Push and Deploy Lightning Web Component Files

Hi There !!! I've been trying to complete every item on this step in the module, but after I created the LWC and upload the project to the Scratch Org, I create the Bike Card Lightning App Page but I didn't find the new LWC I created (bikeCard). But if I go to Setup > Lightning Web Components I can see the bikeCard bundle ... but I can't access it (even in Salesforce Console)... what could be happens there ? Any Help ? Thanks in advance!
Best Answer chosen by Sebastian Melgin
Khan AnasKhan Anas (Salesforce Developers) 
Hi Sebastian,

Greetings to you!

Please check the configuration of the component. Each Lightning web component folder must include a configuration file named <component>.js-meta.xml. The configuration file defines the metadata values for the component, including the design configuration for the Lightning App Builder and Community Builder.

If isExposed is false, the component is not exposed to Lightning App Builder or Community Builder.

To allow the component to be used in Lightning App Builder or Community Builder, set isExposed to true and define at least one <target>, which is a type of Lightning page.

https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.reference_configuration_tags

Also, please make sure you are using the latest version of salesforcedx. To work with Lightning web components, you need version 45 or greater of the Salesforce CLI. Check the installed version.

sfdx plugins --core

To update Salesforce CLI use below command:
sfdx update

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Sebastian,

Greetings to you!

Please check the configuration of the component. Each Lightning web component folder must include a configuration file named <component>.js-meta.xml. The configuration file defines the metadata values for the component, including the design configuration for the Lightning App Builder and Community Builder.

If isExposed is false, the component is not exposed to Lightning App Builder or Community Builder.

To allow the component to be used in Lightning App Builder or Community Builder, set isExposed to true and define at least one <target>, which is a type of Lightning page.

https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.reference_configuration_tags

Also, please make sure you are using the latest version of salesforcedx. To work with Lightning web components, you need version 45 or greater of the Salesforce CLI. Check the installed version.

sfdx plugins --core

To update Salesforce CLI use below command:
sfdx update

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Sebastian MelginSebastian Melgin
Thank you Khan for your quick response !!
This is the code I have on the lwc (bikeCard.js-meta.xml)
 
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
    <!-- The apiVersion may need to be increased for the current release -->
    <apiVersion>46.0</apiVersion>
    <isExposed>true</isExposed>
    <targets>
        <target>lightning__AppPage</target>
        <target>lightning__RecordPage</target>
        <target>lightning__HomePage</target>
    </targets>
</LightningComponentBundle>
As you can see, it accomplishes what you described. Also, the sfdx seems to work with version 46 ...
 
Sebastian MelginSebastian Melgin
By the way, I updated from ver 7.13.0-27dbcb37d3 to 7.14.0-bd96f098e0
Ivan Sudakov V.Ivan Sudakov V.
The only suggestion that comes to mind is to double-check that you deploy to the correct org.
tricks dbtricks db
Gangubai Kathiawadi movie (https://wagrouplink.com/gangubai-kathiawadi-full-movie-download/) download, Gangubai Kathiawadi full movie download, download Gangubai Kathiawadi full movie in Hindi. download Gangubai Kathiawadi movie 720p, Gangubai Kathiawadi full movie download filmyzilla, tamilrockers & telegram. Hello There, Welcome to WAGroupLink.com. In this post, I will share Gangubai Kathiawadi full movie download link.