You need to sign in to do that
Don't have an account?
Basheer Khan
Error in creating first Hello lightning component and calling in app in dev console
Hello all, I'm following up an institute's class videos for salesforce lightning. The institute's lecturer showed a simple hello lightning component and called that component in lightning app. I followed the same but it is showing an error as
" Field Integrity Exception - Failed to save FirstApp.app: Invalid component 'c:FirstComponent.cmp': Source"
The Component Code with name FirstComponent:
<aura:component >
Hello Lightning
</aura:component>
I'm trying to call the component in the Application with name FirstApp as
<aura:application >
<c:FirstComponent.cmp />
</aura:application>
This is the exact code I'm writing from the class but why its not working ? The class videos are from 2020.
" Field Integrity Exception - Failed to save FirstApp.app: Invalid component 'c:FirstComponent.cmp': Source"
The Component Code with name FirstComponent:
<aura:component >
Hello Lightning
</aura:component>
I'm trying to call the component in the Application with name FirstApp as
<aura:application >
<c:FirstComponent.cmp />
</aura:application>
This is the exact code I'm writing from the class but why its not working ? The class videos are from 2020.
please remove .cmp in application and try again.
Thanks,
anshi.