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
Sherrie MooreSherrie Moore 

stuck in Create and Add a Lightning Component to the Record Page

Receiving this error and am not sure what to do.  The component added to my homepage.  (I am working towards my Admin Cert and have NO developer background) 
SandhyaSandhya (Salesforce Developers) 
Hi,

Make sure that your code is as below.
 
<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}">
    <!-- Contact list goes here -->
</lightning:card>

Also let know the error you are getting.

Best Regards,
Sandhya