Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

What does the error Console.log in LWC mean?

Asked by Brian Kennedy Aug 23, 2023 1.1K views 1 answer
Share

About this question

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? 

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.