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
Salesforce####Salesforce#### 

i am getting this error how to resolve


This page has an error. You might just need to refresh it. Action failed: c$TestComp$controller$showMsg [Cannot read property 'getELement' of undefined] Failing descriptor: {c$TestComp$controller$showMsg}
Akhil AnilAkhil Anil
Can you post the code ?
SFDC Coder 1SFDC Coder 1
Hello Salesforce####,

Such error comes from the javascript files of lighting bundle when you tries to call the property(getElement) of a variable  And at some point of an instance,the value of the variable is undefined.

So for the detail explanation kindly share your code.