I have added a Lightning Action button on Contact.
I'm trying to open a Lightning Component on click of this button. But it fails with the below error.
AddAttachmentComponent - Lightning Component
<aura:component implements="force:lightningQuickAction" >
<div>Priview</div></aura:component>
JS Controller
({
doInit : function(component, event, helper) {
console.log("Test");
}
})
Error on button click
Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details. Action failed: forceChatter:lightningComponent$controller$doInit [cannot use the given object as a weak map key] quickActionHandlerHelper.js failed to create component - forceChatter:lightningComponent
Kindly help me out.