Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

this.template.QuerySelector(...).changeMessage is not a function error in Salesforce. How does this error occur?

Asked by Dan Peters Aug 22, 2023 921 views 1 answer
Share

About this question

 In my LWC session’s event handling task, I am getting a child component method which is invoked by a parent component. But when I am creating the components and loading the parent component by using a server, I am encountering this error: app:5348 Uncaught TypeError. 

Even though this.template.QuerySelector(...).changeMessage is not considered to be a function, I am not getting any response in the parent component. 

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.