Skip to main content

Questions tagged [lwr]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

How to communicate from one LWC to another LWC component

I am having two LWC components(A and B) and there is relation between these components. A LWC component is in lightning tab and displaying in flexi page(lighnting page). B LWC component is add ...
user's user avatar
  • 307
-1 votes
0 answers
26 views

CMS Connect Header and Footer on LWR Site

Is there a way we can add header/footer hosted from another site to our LWR site? We have used the CMS Connect feature before to display the header/footer in our Aura site. Now that we have ...
user35317's user avatar
0 votes
0 answers
42 views

CSS not loading in LWR static site

I am starting a new brand new LWR static site project. Even though the CSS file is present in the folder, its throwing an error while loading in localhost. You can see from the below screenshot - ...
Aditya M's user avatar
  • 420
1 vote
0 answers
19 views

How to use custom package in standalone Lightning Web Runtime Single Page application?

I created standalone LWR SPA with command "npm init lwr". It is possible to add npm packages in the project with command: npm install camelCase then use it in src/modules/app/app.js like ...
user149845's user avatar
0 votes
0 answers
39 views

Redirect Urls not working for dynamic URLs in Aura community

Hello, We will soon release a new version of a portal site with a new URL and to prepare correctly, we would like to set redirect Urls in Salesforce by using the "URL Redirects" menu on the ...
Oupat's user avatar
  • 733
1 vote
0 answers
19 views

How to use Config vars of Heroku in Salesforce standalone NodeJS LWR SPA?

I deployed my standalone NodeJS LWR SPA to Heroku. To deal with sensitive data, I need to set config vars in Heroku dashboard, and use it in code. I have added a key-value fair like this: TEST: test. ...
user149845's user avatar
1 vote
1 answer
23 views

Error buildpacks to deploy Lightning Web Runtime SPA standalone nodeJS project to Heroku

I am trying to deploy my standalone LWR SPA project to Heroku. I have created a project then connected to the LWR SPA project via command heroku git:remote -a my-application Then, I added a buildpack ...
user149845's user avatar
0 votes
1 answer
45 views

Adding submenu item in LWR Experience Site's navigation menu

I am working on an LWR experience cloud site. While creating a new navigation menu, I am unable to add sub menu items. Please find the below image, I want to add "New Menu Item" under "...
Raja Sabarish's user avatar
0 votes
1 answer
35 views

Connecting standalone LWR SPA and Apex Class to get access token

I have created standalone LWR SPA with command npm init lwr@latest. And also I have created SFDX class to create Apex class and deploy the class. To use the API, I fetch the API like this: const ...
user149845's user avatar
1 vote
0 answers
57 views

How to use custom labels in LWC that is used in standalone LWR SPA NodeJS module?

I am trying to create LWR SPA project that consisted by LWCs. I have created new LWR SPA with command : "npm init lwr@latest" The steps was set project name - lwr-project. Select Type - ...
user149845's user avatar
1 vote
0 answers
73 views

LWR Community LWC engine ERROR

I have 2 LWR communities on my sandbox. For some reason only one of them is impacted with following issue. Error: [LWC error]: LWC WARNING: current engine is v6.4.1, but template was compiled with v5....
Adam Janicko's user avatar
1 vote
0 answers
52 views

Lightning Web Runtime (LWR) - Pass Server Response Locals to View

I am setting up an LWR server and attempting to get the CSRF Token that is generated by the Express app to be made available via the View so I can place it into a form that is posting back. LWR App....
Jeff Olmstead's user avatar
0 votes
0 answers
136 views

Reports and Dashboards in LWR Experience site

I understand and have used the Dashboard and Reports component in an Aura Experience Site - but I am struggling to display them in an LWR Experience. I have moved the CRM Analytics Dashboard component ...
Darryl Le Roux's user avatar
-1 votes
1 answer
44 views

How to set up CMS Content with Search Results on an enhanced LWR Experience Cloud site?

I followed the instructions from Salesforce here but can't seem to get the 'Results Source' option to allow CMS Content. It only allows CRM Objects. Can anyone please help me figure out what is going ...
Ward Wood's user avatar
1 vote
1 answer
94 views

Platform Resource Loader in LWR sites

I am just trying to understand the technical explanation of why a platform resource loader does not work in LWR sites, what is the workaround to make it work? We have a few LWCs that use static ...
dd03's user avatar
  • 11
0 votes
0 answers
42 views

The value of the $.routeType property isn't supported for this site when installing an unlocked package to a sandbox

When we are installing an unlocked package using sfdx:force:package:install to a Salesforce sandbox, we are getting the following error: Encountered errors installing the package! Installation errors: ...
ThreeThirteenTwentyFour's user avatar
0 votes
1 answer
60 views

Apply Style to a div class in B2b LWR site

I need to add style property to a div class in LWR site.I am adding Style = "position:relative". How can i specify this override in Css head markup of the Site?
Deepak Agarwal's user avatar
0 votes
0 answers
91 views

Enhanced LWR - Not able to Publish modifications - Error ID: 1385547353-13911 (413072119)

I've recently created a B2B enhanced LWR experience Cloud. When, you create a B2B LWR site, a CMS workspace is automatically created. The CMS workspace default language is set as Polish and the site ...
Jul0s's user avatar
  • 11
0 votes
0 answers
71 views

ConnectApiException:[errorCode=INSUFFICIENT_ACCESS] Channel: LWR Enhanced Experience Cloud site

I am using the LWR Enhanced Experience cloud site and configured the Digital Experience app. Created a workspace and added a few images to it. Now after I select the image am accessing the image as ...
Hardik Ranjan's user avatar
0 votes
0 answers
110 views

LWR and Privileged Script Tag

I need to configure Google Tag Manager for the LWR community. But I'm stuck while sending GTM event. GTM is configured this way and works <x-oasis-script hidden="true"> // gtag ...
Siarhei's user avatar
  • 121
1 vote
0 answers
43 views

How to add html content to html layout in LWR

After creating the LWR project I updated the lwr.config.json to point to .html template for the route "/". After I update the contenet template to a .html file too as bellow { "...
Sameera Silva's user avatar
0 votes
1 answer
83 views

Not able to add WishlistItem with same Product ID in a Wishlist (B2B Commerce)

For one of the B2B org, we have a requirement to add custom fields (Quantity__c and Product_Type__c) in the WishListItem object. With ConnectApi.CommerceWishlist.addItemToWishlist(), we can't set the ...
Ashish's user avatar
  • 2,372
0 votes
1 answer
167 views

What to use for an LWR DigitalExperience - ExperienceBundle or DigitalExperienceBundle?

I've just started looking at using LWR instead of Aura Digital Experiences. Note that Having created an LWR experience this: sfdx force source retrieve -u MyOrgAlias -m experiencebundle did not ...
Keith C's user avatar
  • 136k
-1 votes
1 answer
283 views

Developing LWC in LWR without having to publish from experience builder

LWC development in LWR is seemingly painfully slow having to publish with every code change. Has anyone found a workaround for this? Using preview in the experience builder has it's limitations, ...
veritascs's user avatar
  • 211
0 votes
0 answers
102 views

Avoid takeover of guest user when session expires in LWR community

According to this article, the guest user of an LWR community is taking over once a session is expired. We're having major problems with this as we've created custom user settings where a user is able ...
AdrW's user avatar
  • 11
1 vote
0 answers
98 views

Removing item from cart deleted cardelivergroupmethod from database?

I have an issue with an LWR b2b commerce store where the shipping integration is not being triggered when I remove an item from my cart and then reenter the checkout page. I need the shipping ...
Carlton Banks's user avatar
0 votes
1 answer
105 views

Salesforce LWR Experience Cloud Deployment Error - "add a default owner for guest-user created records."

I am trying to deploy a experience LWR experience site, i added the network component to the change set and added all its dependencies. then i uploaded it to a sandbox and the site was successfully ...
Manik's user avatar
  • 1
0 votes
0 answers
63 views

Community site Lightning Web Runtime framework trying to render datasource value in HTML

Trying to renders a field as a picklist, with static values in the Community Page LWC, it shows as Undefined in JS when I try to print the value.. Below is the code, Can you please help me with what I ...
SK2889's user avatar
  • 921
0 votes
1 answer
251 views

How to properly configure LWR networkbrand loginLogo from cms

Since we cannot configure the change password branding in the communities using the LWR template, I've found a work around to retrieve and deploy the metadata on this link: https://ideas.salesforce....
Charleston Santos's user avatar
0 votes
2 answers
340 views

Navigate to LWR Community Home Page

I have pretty simple Custom Modal LWC. I want it to navigate to Customer Portal Home Page onclose of the modal. Below is the code: import LightningModal from 'lightning/modal'; import {NavigationMixin}...
Vladimir Egikyan's user avatar
1 vote
0 answers
204 views

Migration from Aura Site to LWR

We are migrating our Aura site to o LWR Site and we encountered some "porting" problems between the two sites. Embedded chat is not supported on LWR Topics and articles cannot be used as i ...
stackusiastic's user avatar
1 vote
0 answers
424 views

Accessing a Static Resource dynamically from a Lightning Web Runtime site

How can I access the contents of a static resource dynamically when running in an LWR site? I have a JSON configuration file that I need to access from multiple components (including Visualforce, Aura ...
JDB's user avatar
  • 670
2 votes
1 answer
152 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
48 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
0 answers
43 views

Debug user movement on store to reproduce error on local environment?

I am in a situation where I am encountering an error on my sandbox environment, I know how to trigger it, but I don't know what is throwing that error. Is possible to somehow log everything from when ...
Carlton Banks's user avatar
0 votes
0 answers
309 views

Place Order Button is Disabled in B2B Commerce Checkout page after Winter 24 Release

We are setting a B2B commerce LWR digital experience site in the developer org. After winter 24 release, when we put "Place Order" button under Checkout Layout: Accordion -> Checkout ...
Ashish's user avatar
  • 2,372
0 votes
0 answers
162 views

Cannot deploy LWR Enhanced site to scratch org: site template requires a route of type service-not-available

I created a new digital community based on the B2B Commerce (LWR) template. When I deploy it to a scratch org using ExperienceBundle Metadata API, I get this error: The current site template requires ...
Eduard's user avatar
  • 5,161
0 votes
0 answers
115 views

When creating new site, b2b commerce lightning template gives error

I am trying to create a new site from all sites. If I choose B2B Commerce (LWR) template, it gives me an error when site setup. An unexpected error occurred. Try again or contact your Salesforce ...
ozanozaydemir's user avatar
0 votes
1 answer
88 views

LWC loses data returned from Apex method in LWR

I currently have an Community/Experience Cloud site that is built on LWR I have an Apex method that is returning the results of a Product data in a ProductModel class LoadProductConfig method ...
Kevin Ang's user avatar
2 votes
1 answer
325 views

Receiving "LWR3008" error while accessing a LWC screen flow component in LWR sites

I am seeking assistance with an issue I've encountered. Within my current setup, I have an LWC component that functions as a screen component within a flow. This flow is called from another LWC ...
Lakshmi RS's user avatar
6 votes
2 answers
2k views

How to get Static Resource URLs dynamically in LWC that work in LWR sites

TL;DR In case you aren't into reading walls of text, here's the question in a nutshell: Is there an API in LWC that can get a static resource URL dynamically in an LWR site? Please note that, in LWR ...
JDB's user avatar
  • 670
1 vote
0 answers
150 views

Facing issue while installing and running LWR LWC OSS in my windows machine

I have installed LWC OSS from the official site https://lwc.dev/ Here is the steps I followed : Made sure I have node and npm installed Created a lwr project : npm init lwr@latest Installed ...
Akash Musale's user avatar
2 votes
1 answer
635 views

Do LWR Digital Experiences support the audience mechanism?

Audiences allow Aura Digital Experiences to present alternate content - page variations - based on location or record or user or permission attributes. The LWR Template Limitations do not say that LWR ...
Keith C's user avatar
  • 136k
0 votes
1 answer
235 views

B2B Template (LWR) - Custom Fonts

It is possible to use custom fonts on B2B using LWR Template? My current configuration: <style> @font-face { font-family: 'myFirstFont'; /* Replace myFont with your resource name */ ...
chanpelayo's user avatar
0 votes
0 answers
336 views

Guide: Add custom font on experience(community) site using head markup in lightning builder (working 100%)

Question : how to import custom font in Lightning Experience Site? Answer: This has worked for me. (Tested). Following are the ways Case 1 : when font file(.woff) is inside the zip(MyFont) /* Font ...
Manoj Goswami's user avatar
0 votes
0 answers
225 views

B2B LWR: Phone number field in Shipping Address checkout form

In B2B LWR Checkout page there are 2 properties for Phone Number in the Shipping Address component configuration, plus there is a standard field for it in the ContactPointAddress object, PhoneNumber. ...
Juan Ge's user avatar
  • 13
1 vote
3 answers
775 views

lightning__commerce_cartChanged channel is not updating the amount of cart items in the LWR site

I'm currently in progress with migrating from Aura B2B Store to LWR Site, custom components for adding products to cart publish messages to lightning__commerce_cartChanged channel as described here: ...
Eugene's user avatar
  • 13
0 votes
0 answers
108 views

How to get xml properties chosen on child to pass to parent in LWR Experience Builder Site

I have a parent wrapper for two cards in my markup with the cards nested within the parent wrapper. How would I be able to still click on the card to dynamically change the card details? With them ...
Darryl Le Roux's user avatar
0 votes
2 answers
1k views

How to set custom sizing and padding to columns in Experience cloud with Build Your Own LWR theme

I am busy with a custom site that doesn't use any of the base Salesforce styling. I have written my own LWC's but I am having issues spacing them on the site. The only option I have is to set global ...
Darryl Le Roux's user avatar
0 votes
0 answers
231 views

Setting data in LWC lightning datatable isnt working

I have a lightning datatable ecxTerritories.html //random divs <!-- this code below works <div class="slds-col slds-size_1-of-1 slds-m-bottom_medium acc-info" lwc:if={...
Amax1's user avatar
  • 121