+ Start a Discussion
Nagaraju Mogili 15Nagaraju Mogili 15 

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"

<lightning:card iconName="standard:contact" title="{! 'Contact List for ' + v.Account.Name}">
    <lightning:datatable data="{! v.Contacts }" columns="{! v.Columns }" hideCheckboxColumn="true"/></ul> 
    <aura:handler name="init" value="{!this}" action="{!c.myAction}" />
Krishna Mohan 67Krishna Mohan 67

Were you able to solve the error? I am facing the same problem.

Subbu DavalaSubbu Davala
I'm also facing the issue, please help me to resolve this issue.
vali Palagiri 1vali Palagiri 1
Hi All,

Will you solve this problem , am getting same error.
Thiyagarajan P 18Thiyagarajan P 18
hi All
try it by new playground . it would work