Loading

Unsupported Imports from lwc module Will Be Restricted in Future Releases

Publish Date: May 26, 2026
Description

Salesforce identified that some Lightning Web Components (LWC) are using unsupported imports from the 'lwc' module. While some of these imports historically worked due to accidental platform behavior, they are not officially supported for deployed platform components.

The only officially supported imports from 'lwc' for deployed platform components are:

import { LightningElement, api, track, wire, unwrap } from 'lwc';

Any other imports from 'lwc' should be considered unsupported and may be restricted in future releases.

Example of unsupported usage:

import { createElement } from 'lwc';
Resolution

Customers are strongly encouraged to review and update their Lightning Web Components to ensure they only use officially supported imports from 'lwc'.

Recommended actions:

  • Remove unsupported imports from components.
  • Refactor components to align with supported LWC APIs.
  • Avoid relying on undocumented or accidental platform behavior.

Although some unsupported imports are temporarily permitted, this should not be treated as long-term supported behavior.

Knowledge Article Number

005385014

 
Loading
Salesforce Help | Article