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

I am unable to save trailhead challenge "Create a Lightning Component" -
While attempting to complete the Trailhead challenge (Snapshot # 1) I am getting an error "Failed to save undefined: Invalid definition for null:MyContactListController: null: Source" (Snapshot # 2) and cannot see why is it failing. In some article, I read that the issue could have been caused by the controller name so I change it but still no luck. Any help will be appreciated.
Snapshot # 1

Snapshot # 2

Lightning Component:
Controller:
Snapshot # 1
Snapshot # 2
Lightning Component:
<aura:component controller="MyContactListController"> </aura:component>
Controller:
({ myAction : function(component, event, helper) { var action = component.get("c.getContacts"); action.setCallback(this, function(data) { component.set("v.contacts", data.getReturnValue()); }); $A.enqueueAction(action); } })
https://trailhead.salesforce.com/en/projects/quickstart-lightning-components/steps/quickstart-lightning-components3