Questions tagged [create-lwc-app]

The tag has no usage guidance.

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

How to map the lightning-button-stateful to each TopicID in the Home Page, so that I can follow the topics from my home page

I want to map the lightning-button-stateful to each topic on the home page, so that a user can follow the topics which are already present in the org by clicking on the follow button. Here's my code ...
0
votes
2answers
29 views

Invalid mutation LWC

I'm trying to clone the array of records that is passed to the component and add some additional attributes to the cloned records however I always get the 'Invalid mutation: Cannot set "...
0
votes
1answer
25 views

Can't use lightning components in create-lwc-app

I created create-lwc-app (with Electron) and the build breaks when I try to use lightning-textarea for example (Module not found: Error: Can't resolve 'lightning/textarea' in .....'). Are those not ...
-1
votes
0answers
27 views

How to use custom LWC lightning picklist component in lightning-datatable [duplicate]

If we want to have custom lightning component in LWC lightning-datatable, for example picklist for each of the records, how can we do that? As lwc-datatable not support picklist
1
vote
1answer
45 views

LWC Component Tabs are not getting refresh, when moving back and forth on different tabs in the Lightning App [duplicate]

I created an LWC component with lightning-radio-group and added it to the Lightning App, it only shows which value is selected by the user. As I selected value and move the back and forth on the tabs ...
0
votes
0answers
31 views

LWC pub sub : subscribing component fetching stale data from apex

I am having two separate LWC components on the App Page. One is for adding Team members(Call it A 'members-skills') and other for showing all the team members(Call it B 'Team list'). Current ...
0
votes
1answer
34 views

Refresh button with time in lwc?

I have kept the refresh button my requirement is when I click the refresh button it needs to show the time for each time refreshing the page or record there is any resolved solution? Like this, I need ...
0
votes
1answer
22 views

Named Exports in Lightning Web Component

Can we have named export in Lightning Web Component? In ES6 module there are two ways of exporting module: Default Export Named Export I am able to find deault export in lwc export default class ...
6
votes
3answers
256 views

Is curly brace optional in lwc import statement

Below is my JS code in LWC: import searchBears from '@salesforce/apex/BearController.searchBears'; import { LightningElement, wire } from 'lwc'; I would like to understand why some import statements ...
1
vote
0answers
52 views

How to make font-awesome icons work on Lightning Web Components?

Downloaded the latest version of the Font Awesome Icons as a .zip file, I extract the files and uploaded the file all.css as a static resource in my scratch org. Below is my html <i class="fab fa-...
0
votes
1answer
106 views

how to pass data from form made on LWC to visualforce page

I've been trying to connect paypal with salesforce using paypal api: "https://www.paypal.com/sdk/js?client-id=sb&currency=USD"> the problem, i'm not able to implement this api in lwc but i ...
0
votes
2answers
66 views

how to pass data from child window to parent window using lightning web component

how can i pass the data from child window to parent window using lightning web component to populate the new window i used this code popup = window.open("fileName", "Popup", "width=600,height=700"); ...
0
votes
0answers
35 views

Meu componente LWC não carrega ao clicar no botão 'Novo' mais de duas vezes

bom, mudei meu botão 'NOVO' para chamar um componente Aura que chama um componente LWC, até que tudo seja bem, para que uma página lwc seja exibida na primeira renderização, na primeira chamada, se ...
1
vote
1answer
53 views

How to export flow to external website

I am trying to use flow in my local as mentioned here This is how the code looks like: And I'm getting this CORS issue: Access to XMLHttpRequest at 'https://casesrnd-dev-ed.lightning.force.com//...
0
votes
0answers
36 views

Error in creating Lightning Web Components Application

When I am running the command to create the application with Lightning Web Components Open Source using create-lwc-app CLI, I am getting the below error: Command - npx create-lwc-app my-app --yes -o ...
0
votes
2answers
284 views

How to fetch new data in Lightning-record-form? LWC

I am facing an issue with getting the latest data on a simple search and update form that i have made in LWC. All i am trying to do is to search a case, get the details and then update it. It works ...
2
votes
2answers
170 views

Getting this error in the LWC Component? How can we resolve it?

<template for:each={fields} for:item="fields"> <tr class="slds-hint-parent" key={fields.id}> <td role="gridcell"> <div class="slds-truncate">{fields.value1}​</div> ...
0
votes
0answers
38 views

What is Equivalent of $A.getReference(“$Label.c.” + customLabelName) in LWC? [duplicate]

In Lightning Component we can get the custom label value dynamically by passing parameter using below - $A.getReference("$Label.c." + item); What is equivalent in Lightning Web Component ? How to ...
0
votes
1answer
238 views

Lightning Web Component dynamic action button name

I'm trying to get a dynamic lightning button using Lightning Web Components, what I currently have is a wrapper class which builds the necessary data I need and outputs it neatly in a table. This is ...
5
votes
1answer
249 views

How to bypass immutable proxy objects when using an external and old jquery library in LWC

Please note I'm fairly new to LWC and even SalesForce (like barely 2 weeks into it). I'm trying to use SlickGrid with LWC, note that this jQuery lib was created over 10 years ago, and I got that ...
1
vote
1answer
180 views

How to set a unique class for each item in an iteration? (LWC)

In a Lightning Web Component, I am displaying a list of images. I want to change how the image is displayed on mouse over (hover). How can I determine which item from the list triggered the event? ...
0
votes
0answers
85 views

Can I use lightning out on Heroku to show LWC?

I have created a LWC in my Salesforce Org. This LWC uses Salesforce org data like account, contacts etc. Now, I need to show this LWC on Heroku app. Can I use Lightning out to do this? Or is there ...
0
votes
0answers
74 views

Hook into before unload of salesforce standard tab in lighting web component

Is there any way to detect and execute some JavaScript method before unload of salesforce standard tab inside LWC.
3
votes
1answer
91 views

Difference between create-lwc-app and SFDX cli

Hello Salesforce community, I'm not sure where to ask the question so I'll ask it here. I'm beginner with LWC and Salesforce (but senior as frontend developer). Can you explain me the difference ...
0
votes
2answers
725 views

Prepopulate values in lightning record form lwc

I’m trying to create one lwc component, where I need to prepopulate some values including lookup in lightning-record-form. Is it possible to do this in lwc?
2
votes
0answers
47 views

Run LWC open source app on HTTPS instead of HTTP

Hi I am playing with LWC open source and want to host it on HTTPS, default it is on HTTP. I ran the below to run app on http; npx create-lwc-app my-app cd my-app npm run watch App runs ...
2
votes
1answer
272 views

lwc-services is not recognized as an internal or external command

I am trying to run a hellow world app in LWC open source and after "npx create-lwc-app my-app" when I cd in the dir and run "npm run watch" I get the below error. E:\Development\LWC\workspace\dev>...
0
votes
2answers
519 views

How to create a custom lightning web component for Knowledge Articles to show article title and article body only?

I have been trying to create a lwc that will only show the article title and body within our community. so far I am running into some trouble with the lightning record view form commnd and assigning a ...
4
votes
1answer
143 views

lwc : npx create-lwc-app not working

I am running the command and getting the following error : npm ERR! code ECONNRESET npm ERR! errno ECONNRESET npm ERR! network request to http://registry.npmjs.org/create-lwc-app failed, reason: ...
0
votes
0answers
73 views

LWC OSS Application deploy

Iam trying to deploy LWCOSS application in github pages unable to complete it. Steps I followed 1 . npx create-lwc-app testLWCOSS 2. cd testLWCOSS 3. Update package.json home page 3. npm run ...
1
vote
1answer
188 views

How to view new LWC?

I want to play around with the new Lightning Web Component announced earlier today. I have Node.JS downloaded and I'm running a local server, but I'm unable to see anything at the address '0.0.0.0:...