I'm trying to deploy my code but when It's not updated in custom components
Kindly advice what's the issue and can you advice also the difference between working on scratch orgs and non-scratch orgs with lightning web component
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI'm trying to deploy my code but when It's not updated in custom components
Kindly advice what's the issue and can you advice also the difference between working on scratch orgs and non-scratch orgs with lightning web component
There's no errors, so presumably, you just need to update your metadata.
Locate the file helloWebComponent.js-meta.xml, and alter it to the following:
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>45.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__AppPage</target>
</targets>
</LightningComponentBundle>
You'll want to check the documentation, including the "See Also" sections.
As for your final question, there is no difference with LWC in regards to using scratch orgs versus not. The only general difference is that you can't use force:source:push on a non-scratch org, nor force:source:pull.
probably it's already irrelevant, but still. App Builder points out that you don't have My Domain deployed and it's required in order to use Custom Lightning Components. So please deploy it in Setup -> My Domain and then you'll be able to see your component