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?

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 >
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"/>
        <ui:outputText value="{!v.item.Name}"/>
        <ui:outputCurrency value="{!v.item.Price__c}"/>
        <ui:outputNumber value="{!v.item.Quantity__c}"/>
        <ui:outputCheckbox value="{!v.item.Packed__c}"/>
    <ui:button label="Packed!" press="{!c.packItem}"/>
My controller:
    packItem: function(component, event, helper) {
		var a = component.get("v.item",true);
 		a.Packed__c = true;
        var btnClicked = event.getSource();

What am i doing wrong?