function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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"
                  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>
Krishna Mohan 67Krishna Mohan 67
Hi,

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

Thanks,
Krishna
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