Skip to content

Executing Static Resources within LWC #4173

Open
@wvasquezz

Description

@wvasquezz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    External: Other SalesforceCategorizes issue or PR as related to Salesforce related features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions