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
Ricardo Coutinho 7Ricardo Coutinho 7 

Handle Actions with Controllers | Working on App?

Hi,
I just finished the "Handle Actions with Controllers" challenge but i can't get the component to work on the app that we use on this module (harnessApp).

My App:
<aura:application >
    <c:campingListItem/>
</aura:application>
This error appear's
"Something has gone wrong. [NoErrorObjectAvailable] Aura.loadComponent(): Failed to initialize application. An internal server error has occurred Error ID: 1922741726-25604 (1683235083) . Please try again."

My component:
<aura:component >
    <aura:attribute name="item" type="Camping_Item__c" required="true"/>
        <p>Name:
        <ui:outputText value="{!v.item.Name}"/>
    </p>
    <p>Price:
        <ui:outputCurrency value="{!v.item.Price__c}"/>
    </p>
    <p>Quantity:
        <ui:outputNumber value="{!v.item.Quantity__c}"/>
    </p>
    <p>Status:
        <ui:outputCheckbox value="{!v.item.Packed__c}"/>
    </p>
    
    <ui:button label="Packed!" press="{!c.packItem}"/>
</aura:component>
My controller:
({
    packItem: function(component, event, helper) {
		var a = component.get("v.item",true);
 		a.Packed__c = true;
 		component.set("v.item",a);
        var btnClicked = event.getSource();
        btnClicked.set("v.disabled",true);
    }
})

What am i doing wrong?