Skip to main content
Skip table of contents

[LightningComponentBundle] lwc:is can only be used when dynamic components have been enabled

When installing a version from 6.00 and up, you may get an error because of the Lightning Web Security not being enabled. This article explains how to fix this.

  1. From Setup, in the Quick Find box, enter Session, and then select Session Settings.

  2. On the Session Settings page, select Use Lightning Web Security for Lightning web components and Aura components and save.

  3. To ensure the correct files are loaded in the browser, clear your browser cache after enabling or disabling Lightning Web Security. If you suspect that the correct security architecture is not in effect, see Delayed Enabling or Disabling of LWS.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.