You need to sign in to do that
Don't have an account?
Internal Partner
Trailhead: Aura Components Basics / Connect Components with Events - The campingList component doesn't appear to have a Quantity input field in the form using a Lightning Base component
Hi all,
I am still stuck in this part of the module Aura Components Basics. I can not pass the challenge yet.
I have changed the code in campingList.cmp many times. This is the current version:
But I am getting the error:
Did somebody pass currently this challenge?
I am still stuck in this part of the module Aura Components Basics. I can not pass the challenge yet.
I have changed the code in campingList.cmp many times. This is the current version:
<aura:component controller="CampingListController"> <aura:handler name="init" action="{!c.doInit}" value="{!this}"/> <aura:handler name="addItem" event="c:addItemEvent" action="{!c.handleAddItem}"/> <div class="slds-page-header" role="banner"> <div class="slds-grid"> <div class="slds-col"> <p class="slds-text-heading--label">Camping Items</p> <h1 class="slds-text-heading--medium">My Camping Items</h1> </div> </div> </div> <div aria-labelledby="newitemform"> <fieldset class="slds-box slds-theme--default slds-container--small"> <c:campingListForm /> </fieldset> </div> <aura:attribute name="items" type="Camping_Item__c[]"/> <div class="slds-card slds-p-top--medium"> <header class="slds-card__header"> <h3 class="slds-text-heading--small">Camping List Items</h3> </header> <section class="slds-card__body"> <div id="list" class="row"> <aura:iteration items="{!v.items}" var="campItem"> <c:campingListItem item="{!campItem}"/> </aura:iteration> </div> </section> </div> </aura:component>
But I am getting the error:
The campingList component doesn't appear to have a Quantity input field in the form using a Lightning Base component
Did somebody pass currently this challenge?
Sorry for this issue you are facing.
May I suggest you please refer to below code using which I have cleared this module. Hope this helps.
Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
I have tried all your code in my sytem as I worked long and hard to get it correct with no luck.
When I try your code in all the respective places I get the following error back from the challenge check:
The campingList component isn't iterating the array of items and creating campingListItem components.
thoughts?