You need to sign in to do that
Don't have an account?
Sebastian 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!
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
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 is the code I have on the lwc (bikeCard.js-meta.xml)
As you can see, it accomplishes what you described. Also, the sfdx seems to work with version 46 ...