Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing Static Resources within LWC #4173

Open
wvasquezz opened this issue Apr 25, 2024 · 1 comment
Open

Executing Static Resources within LWC #4173

wvasquezz opened this issue Apr 25, 2024 · 1 comment
Labels
External: Other Salesforce Categorizes issue or PR as related to Salesforce related features.

Comments

@wvasquezz
Copy link

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

@nolanlawson nolanlawson added the External: Other Salesforce Categorizes issue or PR as related to Salesforce related features. label Apr 25, 2024
@nolanlawson
Copy link
Contributor

nolanlawson commented Apr 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External: Other Salesforce Categorizes issue or PR as related to Salesforce related features.
Projects
None yet
Development

No branches or pull requests

2 participants