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
Basheer KhanBasheer 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.
SFDC12SFDC12
Hi basheer,
please remove .cmp in application and try again.

Thanks,
anshi.