You need to sign in to do that
Don't have an account?
Renato Barucco 11
ReferenceError: label is not defined at eval
I'm trying to implement a logic for Product Category Status Channel but I'm stuck with this error: ReferenceError: label is not defined at eval.
This is the code I'm developing:
getFilters() { var action = initFilters var arrExisting = !(this.productsAlreadyInCart === undefined || this.productsAlreadyInCart === null) ? this.productsAlreadyInCart : [] action({ doInit : true, productsAlreadyInCart : JSON.stringify(arrExisting), existingFiltersStr : null }).then(response => { var vals = [ label.Label_CreateOpportunity, label.Label_ProductSearch, label.Sopping_cart_title, label.Label_AdditionalInformation] this.indicatorElements = vals this.filterObjs = response.filters this.mainObj = response this.triggerGetProds = true if (localStorage.getItem("showSaveSuccess") != null) { this.showSaveSuccess = true var mainObj = this.mainObj mainObj.messageType = 'success' mainObj.messageToDisplay = label.Saved_Date this.mainObj = mainObj } console.log('mainObj ', this.mainObj) localStorage.removeItem("showSaveSuccess") }).catch(response => { var errors = response if (errors) { if (errors[0] && errors[0].message) { this.showToast(label.ErrorMessage, errors[0].message) } this.error = errors console.log('Errors ', this.error) } else { this.showToast(label.ErrorMessage, label.UnknownError) } }) }
How canI fix it?
Regards
Kindly refer this for the similar asked :-
https://salesforce.stackexchange.com/questions/273109/lwcreferenceerror-a-is-not-defined-at-eval-eval-at-productfamilyoptions
Thanks
Before with error "label is not defined at eval"
After no error