1

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

enter image description here

enter image description here

  • Its says to enable my domain? have you done that? – Pranay Jaiswal Apr 17 at 9:56
  • Thanks this worked for me :) – Mayar Ahmed Apr 17 at 12:03
  • @PranayJaiswal You should add your comment as an answer. – Jayant Das Apr 17 at 12:59
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.