Enable Lightning Web Security for StoreConnect
On this page
StoreConnect uses dynamic imports in its Lightning Web Components (LWC). Salesforce only allows dynamic imports when Lightning Web Security (LWS) is enabled in the org. If LWS is not enabled, the StoreConnect package installation will fail.
LWS is an org-wide setting is on by default in Salesforce orgs created after 2023. If your org predates this, check the LWS status before installing StoreConnect.
Step 1: Open session settings
- Log in to Salesforce as a System Administrator.
- Click the gear icon and select Setup.
- In the Quick Find box, type Session Settings.
- Select Session Settings from the results.
- Scroll down to the Lightning Web Security section.
- Check the box for Use Lightning Web Security for Lightning web components and Aura components.
- Click Save.
Step 2: Retry installation
- After enabling LWS, clear your browser cache. The setting can take a couple of minutes to take effect across the org.
- Retry the StoreConnect installation in the App Exchange.
:::note LWS is backward compatible with most components. Salesforce provides a compatibility tool in Setup to check for any potential issues. If you find that your other apps or components are impacted, you may need to switch off LWS and resolve the issue in your other apps before switching it on again. :::
LWC1503 error
If this error occurs, enable LWS using the steps above, clear your browser cache, and then retry the StoreConnect package installation from AppExchange. No data or setup information in your org is affected by a failed installation attempt.
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.