lwc icon indicating copy to clipboard operation
lwc copied to clipboard

Executing Static Resources within LWC

Open wvasquezz opened this issue 4 months ago • 1 comments

Hi, I hope you're doing well. I'm attempting to use a third party library within my lwc. I've done my best to be abide by CSP policies. I was wondering based on the screenshots below, is there an obvious error I may be missing or next steps I should pursue.

Static resources within my org: Screen Shot 2024-04-25 at 1 02 43 PM

Trusted URLS & CSP Directives: Screen Shot 2024-04-25 at 1 03 09 PM Screen Shot 2024-04-25 at 1 29 49 PM

Developer tools console output for my component. "mapboxgl is not defined": Screen Shot 2024-04-25 at 12 57 24 PM

Also, according to console output, it appears the static resources were fetched properly: Screen Shot 2024-04-25 at 12 57 53 PM Screen Shot 2024-04-25 at 12 58 14 PM

HTML, CSS, JS source code: Screen Shot 2024-04-25 at 12 59 26 PM Screen Shot 2024-04-25 at 12 59 52 PM Screen Shot 2024-04-25 at 12 59 54 PM

wvasquezz avatar Apr 25 '24 17:04 wvasquezz

Hello, thanks for reporting, but this looks like an issue with the Salesforce platform, not the LWC framework (this repo). To resolve your issue, I would recommend opening a Salesforce Stack Exchange question or a Salesforce case.

nolanlawson avatar Apr 25 '24 21:04 nolanlawson