You need to sign in to do that
Don't have an account?
lavanya mulpuri
Invalid <aura:attribute> type: Wrapperobj[]
Hi All,
I'm unable to save my Lightning Component, becase it keeps throwing this error Invalid <aura:attribute> type: Wrapperobj[]
Attribute declaration:
<aura:attribute name="contactList" type="SearchLeads.Wrapperobj[]" />
Class name : SearchLeads
Wrapper class name : Wrapperobj
I'm facing this issue, after my org got updated to SPRING 18
Thanks in advance!
Lavanya
All Answers
Please change it to WrapperClass[], lightning do not refer Class custom wrapper classes.
Hope this will solve your problem.
Thanks,
Gaurav
Skype: gaurav62990
Takes Freelance Task
if your org have custom namespace then you got this error, this is a known issue :
https://success.salesforce.com/issues_view?id=a1p3A0000001CBeQAM
the workaround is cut your wrapper(child) class from main class and create new fresh wrapper class and then use direct wrapper class name
<aura:attribute name="tlist" type="childClass1[]"/>
i hope it helps you.
Let me inform if it helps you and kindly mark it best answer if it helps you so it make proper solution for others
thanks
sfdcmonkey.com
you might have kept it inside <form> your code </form> because of which this error might be occurring .