0

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

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

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.

4
  • Thank you for your response in the console log it shows failed to retrieve the d3v4.js from static resource May 31 at 14:23
  • Can you please add some LWC code, how you are referencing static resource in your code? May 31 at 14:31
  • or you can refer this link for better understanding on how to load a static resource. May 31 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 at 14:34

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.