i have the static resource in the salesforce it has few files related to the d3.jsi changed the label names in the d3v4,js file after that i saved the modified d3v4.js file in the static resource,I not getting the lWC it is showing like thisenter image description here

  • As Ankur said, we need to see how you're loading the script, if you're getting any errors, etc.
    – sfdcfox
    May 31, 2021 at 14:37

1 Answer 1


Please check if you have updated the reference in the LWC as well for fetching static resource, otherwise press F12 (Chrome Developer Tools) and check for any errors in the console tab.

  • Thank you for your response in the console log it shows failed to retrieve the d3v4.js from static resource May 31, 2021 at 14:23
  • Can you please add some LWC code, how you are referencing static resource in your code? May 31, 2021 at 14:31
  • or you can refer this link for better understanding on how to load a static resource. May 31, 2021 at 14:33
  • import D3 from '@salesforce/resourceUrl/AdvanceTraceability_StaticResource'; this is the line i am loading resource,previously it worked properly i am changed the label names in the d3v4.js now it is not working May 31, 2021 at 14:34

You must log in to answer this question.

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