You need to sign in to do that
Don't have an account?
Subbu Davala
error in challenge: create a lightning component.
Module
Lightning components -> Create a lightning component
I"m just using the same code they've given in trail head module.
Error:-
Step not yet complete... here's what's wrong:
The component does not contain the correct lightning:card markup.
code used: (provided in trailhead):
<lightning:card iconName="standard:contact" title="{! 'Contact List for ' + v.Account.Name}">
<!-- Contact list goes here -->
<lightning:datatable data="{! v.Contacts }" columns="{! v.Columns }" keyField="Id" hideCheckboxColumn="true"/>
</lightning:card>
Lightning components -> Create a lightning component
I"m just using the same code they've given in trail head module.
Error:-
Step not yet complete... here's what's wrong:
The component does not contain the correct lightning:card markup.
code used: (provided in trailhead):
<lightning:card iconName="standard:contact" title="{! 'Contact List for ' + v.Account.Name}">
<!-- Contact list goes here -->
<lightning:datatable data="{! v.Contacts }" columns="{! v.Columns }" keyField="Id" hideCheckboxColumn="true"/>
</lightning:card>
Makue sure that you have saved your component and also provide the link of the trailhead challenge so that I can help you further.
Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.
Best Regards,
Sandhya
Thanks for your reply.
PFB trailhead link for the module:-
https://trailhead.salesforce.com/projects/quickstart-lightning-components/steps/quickstart-lightning-components3
Yes , the component is saved. i could see the component in my record page. it's working successfully.
but still, i'm facing the same issue.
i could not attach screenshot, becoz i'm getting some error while trying to take screenshot.
Open your component and make sure that it has the same code as below which worked for me.If this does not work I would suggest you try in new trailhead playground as there may be some pre existing configuration that is preventing you from checking challenge.
Please mark it as solved if my reply was helpful, it will make it available
for others as a proper solution.
Best Regards,
Sandhya