Salesforce lightning Aura 组件错误

Salesforce lightning Aura Component error

我在商机记录详细信息页面上添加了一个 Lightning Aura 组件。当我更新商机记录并刷新页面时,弹出以下错误。

Uncaught Error in $A.getCallback() [Value is not a string, ObjectId, or FieldId.]

throws at https://xxxinstance.lightning.force.com/auraFW/javascript/dOMRLHt4yryfVjId3qhSww/aura_prod.js:43:15. Caused by: Error in $A.getCallback() [Value is not a string, ObjectId, or FieldId.]

我看到了控制台日志,即使在启用 Lightning 调试模式后,我也没有在控制台和调试日志中看到任何错误。

 var action = component.get("c.getChecklist");        
        action.setParams({
            "recordId" : component.get("v.recordId")
        });        
        action.setCallback(this, function(a) {
            if (a.getState() === "SUCCESS") {
                if(component.isValid()) {
                    var returnValue = a.getReturnValue();
                    if(returnValue != null){

                    else{                         

                    }                        
                }
            }
        });             
        $A.enqueueAction(action);