Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [lws]

Lightning Web Security (LWS) is a new client-side security architecture for Lightning components. This new architecture is defined by fewer restrictions and more functionality while providing strong sandboxing and a security posture to enforce namespace isolation. The result is strong, flexible, usable security for your Lightning components. LWS aims to replace Lightning Locker for Lightning components.

Filter by
Sorted by
Tagged with
3 votes
1 answer
55 views

How to Check if LWS (lightning web security) is enabled inside Apex or LWC

I would like to experiment with dynamic LWC components in my managed package. I also would like to keep the option for some clients to use my package in case some other package requires keeping the ...
Искрен Станиславов's user avatar
0 votes
0 answers
37 views

LWS enablement for LWC:REF directive and then anchor , lightning button not working in aura component

I had to enable LWS in my salesforce org to work with lwc:ref directive. But after switching that setting on, anchor tag and lightning button in my aura component are not working. I have used anchor ...
kunal banerjee's user avatar
2 votes
1 answer
84 views

Lightning Web Security - LWC cometD subscribe error

I have a lwc component, used on internal platform app and experience site, which listens to platform event. We use empApi to subscribe to platform events when user is internal and cometD library to ...
Ashish Sharma's user avatar
1 vote
0 answers
58 views

Cannot lint vs LWS (Lightning web security) standards with eslint, missing config extension

We are in the process of executing the ESLint rules for enabling Lightning Web Security (LWC). We are following the below document to install the ESLint, which is working fine with the LWC component ...
Web's user avatar
  • 21
2 votes
0 answers
65 views

Can we remove "capability" from LWC xml file after it was added to Managed Package

I want to implement Dynamic component instantiation to one of my LWC which is a part of Managed Package. To do this a component's configuration file must include the lightning__dynamicComponent ...
Vitalii Dehnerys's user avatar
1 vote
0 answers
149 views

Leaflet is not working correctly in Mozilla Firefox browser when LWS is enabled in Salesforce

In Salesforce to show the map with pointers I created custom LWC and use Leaflet.js library but there is an issue with LWS and Mozilla Firefox. When LWS is enabled then in Mozilla Firefox browser ...
Ярослав Пажух's user avatar
2 votes
1 answer
131 views

Using 3rd Party JS library in LWR Community

I need to use a 3rd patty JS library in my LWC component in a LWR community. Looks like platformResourceLoader is not working in LWR, so it's not possible to load script from static resources as ...
nitolos's user avatar
  • 21
0 votes
0 answers
41 views

Video capture in LWR

We have developed some small LWC that start the device camera to take a picture. It uses getUserMedia method in navigator.mediaDevices and works perfectly for internal users in Sales Cloud. When ...
Vladimir Egikyan's user avatar
0 votes
1 answer
540 views

LWC Control Workspace Tabs and Subtabs (Beta) on Dev Org

Are the Beta features enabled on Developer Orgs? I wanted to play around new Workspace API for LWC, enabled LWS on my DevOrg. Deploying such component import { LightningElement } from "lwc"; ...
Maciej Król's user avatar
0 votes
1 answer
117 views

What is the LWS distorted behavior of Document.prototype.execCommand?

According to Salesforce's documentation, the distorted behavior of Document.prototype.execCommand is described as: When an HTML document has been switched to designMode, its document object exposes ...
Swisher Sweet's user avatar
2 votes
1 answer
885 views

LWC / JS - event.stopPropagation() causing error - [event.stopPropagation is not a function]

I got this error in the view [event.stopPropagation is not a function] This is the code triggering this error commentHandleChange(event){ let selectedValue = 'Pitched'; this.handleStatusChange({ ...
Ryan McNeely's user avatar
0 votes
0 answers
218 views

LWC with external js lib not loading when use LWS security checkbox is checked

We have DHTMLX Gantt library loaded in a LWC and deployed to multiple orgs, and we are facing this issue where if we uncheck the "use LWC Lightning Web Security for Lightning web components and ...
Rohit's user avatar
  • 11
1 vote
0 answers
420 views

Will the Limitation for Lightning Web Security be fixed soon?

Salesforce is releasing Lightning Web Security(LWS) for Aura as GA in Summer 23, and in the LWS Limitation Article says that window.location cannot be used because LWS set that to null. My questions ...
Rogerio Honorio's user avatar
1 vote
1 answer
684 views

LWC Creating Custom Tooltip in ChartJS

I have a created a bar chart using chart js. The chart loads fine but while trying to create a custom tooltip I am encountering the following which I believe is stopping the tooltip from being created:...
sforg1's user avatar
  • 107
0 votes
1 answer
402 views

LWC Error: createClient is not defined when using Supabase JavaScript library

I am trying to use the Supabase JavaScript library in an LWC Documentation initializing supabase Supabase JavaScript library: supabase-js@2 Their example from the documentation: import { ...
Robs's user avatar
  • 9,366
10 votes
2 answers
941 views

Debug Components in an Org With LWS Enabled - breakpoints not working

The new Lightning Web Security model that is set to overtake Lightning Locker is not working the way the SF docs explain. In short: I do not have an 'lws' folder. From developer.salesforce.com: When ...
bkwdesign's user avatar
  • 579
2 votes
1 answer
414 views

Toggle in LWC has very big active area

In LWS component I have form with a toggle button and use this snippet of code for this <div style="margin-top: 15px;"> <lightning-input type="...
frra's user avatar
  • 21
1 vote
0 answers
1k views

A Component Error has occurred! when open page with Cypress.io

When I open Page with LWC Component under Cypress.io test, then Salesforce returns error: A Component Error has occurred! undefined is not a valid component, or does not extends LightningElement from ...
TIT's user avatar
  • 111
3 votes
1 answer
424 views

Impacts of Lightning Web Security on Cookie Usage

I reference B2B LEX but I believe this is not a problem specific to B2B LEX - I just want my use case to be kept in mind in case it's relevant. Our current implementation has a Salesforce Experience ...
Victor Lockwood's user avatar
4 votes
2 answers
419 views

LWS - Apparent difference in behavior using data returned from Apex call

Prior to enabling LWS in Spring '22 we were able to successfully 'modify' objects returned from an Apex Call. After enabling LWS we cannot modify the data. Allow me to give an example. Below is some '...
Peter Byrne's user avatar