You need to sign in to do that
Don't have an account?

The component does not contain the correct lightning:card markup, I am getting this error after completation of the below code. I am not sure, what is the mistake here. can anyone help me on this
<aura:component controller="MyContactListController" implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
<aura:attribute name="recordId" type="Id" />
<aura:attribute name="Account" type="Account" />
<aura:attribute name="Contacts" type="Contact" />
<aura:attribute name="Columns" type="List" />
<force:recordData aura:id="accountRecord"
recordId="{!v.recordId}"
targetFields="{!v.Account}"
layoutType="FULL"
/>
<lightning:card iconName="standard:contact" title="{! 'Contact List for ' + v.Account.Name}">
<ul>
<lightning:datatable data="{! v.Contacts }" columns="{! v.Columns }" hideCheckboxColumn="true"/></ul>
</lightning:card>
<aura:handler name="init" value="{!this}" action="{!c.myAction}" />
</aura:component>
<aura:attribute name="recordId" type="Id" />
<aura:attribute name="Account" type="Account" />
<aura:attribute name="Contacts" type="Contact" />
<aura:attribute name="Columns" type="List" />
<force:recordData aura:id="accountRecord"
recordId="{!v.recordId}"
targetFields="{!v.Account}"
layoutType="FULL"
/>
<lightning:card iconName="standard:contact" title="{! 'Contact List for ' + v.Account.Name}">
<ul>
<lightning:datatable data="{! v.Contacts }" columns="{! v.Columns }" hideCheckboxColumn="true"/></ul>
</lightning:card>
<aura:handler name="init" value="{!this}" action="{!c.myAction}" />
</aura:component>
Were you able to solve the error? I am facing the same problem.
Thanks,
Krishna
Will you solve this problem , am getting same error.
try it by new playground . it would work