This gave me over 5 hours of brain damage, and yet don't have a solution. Can someone please assist?
UPDATE: markup in component:
<td>
<div class="slds-truncate" >
<a href="javascript:void(0);" onclick="{!c.nextStage}">Complete</a>
</div>
</td>
UPDATE: controllerJS function:
nextStage: function(component, event, helper){
console.log("----------------> nextStage 0");
helper.completeStage(component, event, helper);
},
helperJS function:
completeStage : function(component, event, helper){
console.log('---------------> completeStage 1 ');
var action = component.get("c.uselessMethod");
action.setCallback(this, function(response) {
console.log('---------------> completeStage 2');
});
try{
$A.enqueueAction(action);
}
catch(err3){
console.log("---------------> completeStage EXCEPTION " + err3);
}
},
This is my apex controller method:
@AuraEnabled
public static void uselessMethod(){
system.debug(logginglevel.error,'------------------------------------> uselessMethod! ');
}
Browser Console Log:
---------------> completeStage 1
---------------> completeStage EXCEPTION TypeError: action.$getComponent$ is not a function
The callback is not being invoked at all. $A.enqueueAction(action)
is generating an exception. No Apex debug log either. My web search yielded irrelevant results.
<aura:component controller="xxx">
specified?