Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 38079

This tag is for questions related to JavaScript, CSS, or Markup when used in the Lightning Web Component (LWC) programming model, or for questions of interoperability between LWC and the original Aura-based lightning components.

1 vote
0 answers
210 views

updated input Values not refecting on child html component

On button click i am redirecting to child LWC by using NavigationMixin.Navigate. Below is the URL which gets generated https://XXXXXXXXX.lightning.force.com/lightning/cmp/c__ChildComp?c__recordId=123 …
learningmode's user avatar
0 votes

Getting Error While Iterating on JSON Array using for:each in LWC

Just tried from my end in LWC playground. I am not getting any error @track test = [{ "color": "#ED0E0E", "criterias": [{ "field": "sdd", "operator": "==", "value": " …
learningmode's user avatar
0 votes
1 answer
2k views

conditional rendering is not happening to display child component

I am trying to render conditionally to display child component. But it is not happening. on button click i am getting the values, but child component is not getting displayed. <template> <d …
learningmode's user avatar
0 votes
2 answers
2k views

afterRender threw an error in 'c:TestLWC' [Cannot read property 'data' of undefined]

I am using the below code to make a call to apex method on page load and validate some response. I am getting error afterRender threw an error in 'c:TestLWC' [Cannot read property 'data' of undefine …
learningmode's user avatar
1 vote
1 answer
2k views

Uncaught (in promise) TypeError: c.createElement is not a function

I am getting the below error when using react js in LWC. Any idea how to resolve this. Uncaught (in promise) TypeError: c.createElement is not a function LWC import { LightningElement } fr …
learningmode's user avatar
1 vote
1 answer
2k views

'default' is not exported by helloWorldNew.js LWC

I am trying to use a JS file which is within same folder structure like below. When i am trying to deploy, it is giving error LWC1002: Error in module resolution: 'default' is not exported by h …
learningmode's user avatar
0 votes
1 answer
7k views

Pass values from parent to child LWC

I am trying to pass value from parent LWC component to child LWC component, but i am getting "undefined" error. Am i doing anything wrong. Parent : <template> <div> <lightning-input type="text …
learningmode's user avatar
4 votes
1 answer
10k views

How to refer child component name in parent component LWC

I have a child component folder "bCPContractTOP" which has bCPContractTOP.HTML bCPContractTOP.js bCPContractTOP.js-meta.xml How to call this from parent component. I am getting one error LWC1010 …
learningmode's user avatar
1 vote
2 answers
6k views

lightning web component spinner position issue

i am overriding New button with a lightning component which is displayed as Modal. I have added spinner to it. But the spinner comes at very top of the modal. How to bring the modal in middle . HTM …
learningmode's user avatar
0 votes
1 answer
3k views

lwc lightning-input checkbox not getting unchecked

I have a scenario where i have a list of records which has checkbox field like below. Here i am selecting one record at a time , means i cant select 2 or more records at a time which is working fine. …
learningmode's user avatar
2 votes
1 answer
861 views

react.createElement is not a function LWC

I am getting the below error when using react js in LWC. Any idea how to resolve this. afterRender threw an error in 'c:razorpay' [c.createElement is not a function] JS import { Lightnin …
learningmode's user avatar
1 vote
1 answer
1k views

Css not working in Lightning Web Component

I have this below HTML page in LWC - <lightning-layout multiple-rows="true"> <lightning-layout-item padding="horizontal-small" size="4"> <div class="borderclass"> …
learningmode's user avatar
1 vote
2 answers
2k views

Not getting recordId in URL generated from lightning-navigation

On button click on parent LWC component, i am calling lightning-navigation to call child component. I am passing recordID in the attributes as below - <template> <lightning-button label="CallChild" …
learningmode's user avatar
2 votes

LWC not recognizing PageRefrence changes and not displaying updated values

Found one solution - In the component with lightning:isUrlAddressable simply add a change handler for the pageReference state. Component: <aura:handler name="change" value="{!v.pageReference}" act …
learningmode's user avatar
2 votes
0 answers
483 views

react-dom js file not loading properly in LWC

I am trying to import react and react-dom js file from static resource. i have usded the below cdn to collect the js file into static resource https://cdnjs.cloudflare.com/ajax/libs/react/16.9.0/cjs …
learningmode's user avatar

15 30 50 per page