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

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

2 Answers 2

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.

1
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .