You need to sign in to do that
Don't have an account?

Challenge Not yet complete... here's what's wrong: The campingList component doesn't have an attribute named 'newItem' of type Camping_Item__c with a default sObject.
Trying the Input Data Using forms trailhead and doing the "Create a Form to Enter New Items" at the end of one module. Getting error --
"Challenge Not yet complete... here's what's wrong:
The campingList component doesn't have an attribute named 'newItem' of type Camping_Item__c with a default sObject."
MY campingList.cmp file begins--
I am using a dev org with a Namespace. (I thought you had to do do Lighning trailheads.)
"Challenge Not yet complete... here's what's wrong:
The campingList component doesn't have an attribute named 'newItem' of type Camping_Item__c with a default sObject."
MY campingList.cmp file begins--
<aura:component > <aura:attribute name="newItem" type="Camping_Item__c" default = "{ 'Quantity__c' : '0' , 'Price__c' : '0' }"/> <aura:attribute name="items" type="Camping_Item__c[]"/>Any Idea what could be wrong?
I am using a dev org with a Namespace. (I thought you had to do do Lighning trailheads.)
to the newItem atttribute fixed that issue.
All Answers
to the newItem atttribute fixed that issue.
Hi Ken,
Did I get the syntax right here?
This is a lightning module so you will be required to change all of the ui: elements to lightning, e.g. <ui:inputText... becomes <lightning:input... (lightning:input defaults to text but you can add the optional attribute type="text" if you'd like).
Hope this helps,
Wade