I’m using Salesforce CLI with Visual Code IDE. I imported a 3rd party library to the scratch orgs static resources. Then I ran the sfdx:source: pull command to pull it into my Visual Code project. I created an LWC component that imports the 3rd party library from static resources.
import { Config } from ‘@salesforce/resourceUrl/my3rdPartyModule/directoryName/index.js’
When I attempt to push the new component to the scratch org, I encounter the following error:
LWC1513: @salesforce/resourceUrl modules only support default imports.
What does the error mean? Is there a solution for this?