Lightning Web Components : Error Handling in LWC

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

ความคิดเห็น • 40

  • @Jayprakash_Shakya
    @Jayprakash_Shakya 3 ปีที่แล้ว +2

    this channel is very helpful for beginners and experienced, all session is well explained with all type of basic.

  • @mya3226
    @mya3226 2 ปีที่แล้ว

    Hi Panther :)
    For the contact search, I followed the same steps as you and I get this error:
    Error: [LWC error]: Invalid template iteration for value "undefined" in [object:vm ContactListDemoo (48)]. It must be an Array or an iterable Object.
    I get the contact list but the problem comes from the display of this one on the HTML part.
    It seems to me that the error comes from this line

  • @srinid1010
    @srinid1010 5 ปีที่แล้ว

    Great Job Amit. Thanks for sharing the knowledge.

  • @vikashkumar-nb6up
    @vikashkumar-nb6up 4 ปีที่แล้ว

    Hi Amit,
    I have implemented the code which you have shown in the video.But I am getting "@wire target property or method threw an error during value provisioning" error. Could you please help me with the reason behind it.
    Thanks!

  • @souravthapliyal4218
    @souravthapliyal4218 4 ปีที่แล้ว

    Great explanation by you Amit. I have followed many of your youtube playlists. All are awesome and thanks to you. Can you please make a video of explaining more about Git setup with vs Code and about how to use CI/CD to salesforce.

  • @spidysalesforce4076
    @spidysalesforce4076 4 ปีที่แล้ว +1

    HI Amit, While calling Imperative method getAccountList ({name:this.searchkey})in contactListDemo.js. You have used .them instead of '.then' .

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      If that is the case, we should not be able to see the output.

    • @spidysalesforce4076
      @spidysalesforce4076 4 ปีที่แล้ว

      @@sfdcpanther I am just informing you console.log were not showing value. But after changing SearchkeyAccount in sfdc it is showing value but not on console.I am not pointing your mistake.I just wanted to inform you.I like most your video's.I have watched Lightning component 22 videos and Integration 11 video . Now I started learning LWC.

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      Hey , I believe you got me wrong. What I am saying is that if code is wrong then we will not get output. So there possibilities that I changed later or it looks like them instead of then

    • @spidysalesforce4076
      @spidysalesforce4076 4 ปีที่แล้ว

      @@sfdcpanther I have watched Next video you have changed in it.

  • @venkatrajaarigela8919
    @venkatrajaarigela8919 3 ปีที่แล้ว

    Hi Amit, great job. While searching contact on change method you are not calling again apex, how it will filter. it will assign value only to search key. I am missing there. can you give reply please.

    • @sfdcpanther
      @sfdcpanther  3 ปีที่แล้ว +1

      Wire method automatically gets executed when there is any change in the variable which is used in wire method as parametere

    • @venkatrajaarigela8919
      @venkatrajaarigela8919 3 ปีที่แล้ว

      @@sfdcpanther Thank You! your shared nice point here. :) :)

  • @yogeshupadhyay2994
    @yogeshupadhyay2994 4 ปีที่แล้ว

    what is the difference between @wire and imperative method, which one is better and when to use @wire or imperative

  • @siddhantshukla2668
    @siddhantshukla2668 3 ปีที่แล้ว

    Hey Amit. Why did you use {contact.key} in the layout-item. There in no Key attribute in the Contact. Thanks in advance

    • @sfdcpanther
      @sfdcpanther  3 ปีที่แล้ว

      You can use any variable but ideally we use a variable which is unique like id.

  • @pragadeeshdharsha4703
    @pragadeeshdharsha4703 4 ปีที่แล้ว

    Hi Amit. What extension do you use for the auto fill lwc code snippet?

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      Here is the link
      marketplace.visualstudio.com/items?itemName=Nik-Creation.lwc-salesforce

  • @sasikumar-kg1ps
    @sasikumar-kg1ps 3 ปีที่แล้ว

    Hi Amit,
    Your video was very useful and clear explanation.
    I have followed your steps but I am getting "unable to get local issuer certificate" this issue. Could you please help how to resolve this issue.

    • @sfdcpanther
      @sfdcpanther  3 ปีที่แล้ว

      Are you using your office network?

    • @sasikumar-kg1ps
      @sasikumar-kg1ps 3 ปีที่แล้ว

      @@sfdcpanther Yes. Thank you so much Amit, the issue resolved now.

  • @gopi5397
    @gopi5397 5 ปีที่แล้ว

    where we can get coding as you discussed in this video

  • @alhoceimaahamjik8522
    @alhoceimaahamjik8522 4 ปีที่แล้ว

    Hi! in the video you implemented a component inside component. I created a accountTile and when I inserted into it doesn't work.

    the error says: No MODULE named markup://c:accountTitle found : [markup://c:contactListDemo]
    what does it mean?
    Thanks

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      That means you have not deployed the accountTile component to Salesforce org. First you need to deploy all the dependent component, class then you need to deploy the parent component.

  • @sk-yi9cv
    @sk-yi9cv 4 ปีที่แล้ว

    I am able to get contact and account data , but not able to display even though I am writing the same code in video,, please suggest.......

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      Have you checked if you are using the correct API names? Also have you tried to debug in the Console

  • @venkatesh275
    @venkatesh275 5 ปีที่แล้ว

    Hi Amit, your videos are so helpful and understandable. I need small suggestion from you. I'm new to lightning, please suggest me that i should go with AURA or LWC?

    • @sfdcpanther
      @sfdcpanther  5 ปีที่แล้ว

      See both Aura and LWC have their own importance in some places but you are completely new then I will suggest to go with LWC

    • @venkatesh275
      @venkatesh275 5 ปีที่แล้ว

      @@sfdcpanther Thank you Amit

  • @VikasSharmaFitness486
    @VikasSharmaFitness486 3 ปีที่แล้ว

    sir please sharing the code also on github during matching time to hard to get the error

  • @nitikaprajapat5480
    @nitikaprajapat5480 4 ปีที่แล้ว

    Hi, Where can we get this code?

  • @Karry090
    @Karry090 4 ปีที่แล้ว

    can we use more than one controller in LWC?

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      Yeah as Many as you want

  • @pujapatil289
    @pujapatil289 3 ปีที่แล้ว

    where are we get all ppt of the video?

    • @sfdcpanther
      @sfdcpanther  3 ปีที่แล้ว

      You won't get access to PPT

  • @teja7703
    @teja7703 4 ปีที่แล้ว

    creating little bit confusion amith first time in ur tutorials...any way good content .. i have a input for u pls go with one example ata time

    • @sfdcpanther
      @sfdcpanther  4 ปีที่แล้ว

      Thanks for your feedback

  • @SaddamHussain-bc9yh
    @SaddamHussain-bc9yh 5 ปีที่แล้ว

    👍

  • @ramangandhi4221
    @ramangandhi4221 4 ปีที่แล้ว

    Please share the code