What does the error Console.log in LWC mean?

361    Asked by BrianKennedy in Salesforce , Asked on Aug 23, 2023


When providing debug in LWC, I get the above-mentioned error. I have added the following codes: 

/* eslint-disable no-console */
// eslint-disable-next-line no-console
"rules": {
    "no-console": "off",
    "no-alert": "off"
}
And the JavaScript code:
import { LightningElement,api,wire } from 'lwc';
import getValue from '@salesforce/apex/ScController.getValue';
export default class ScScoreCard extends LightningElement {
    @api recorded;
    @wire(getValue, {opportunityId: '$recordId'}) valueList;
    // eslint-disable-next-line no-console
    console.log(">>> valueList... "+valueList);
    }

But I am still getting the error. Is there any suggestion? 

You need to write some executable statements inside a function like the below during LWC login:


Now, add a function to get the result.







Your Answer

Interviews

Parent Categories