Activity Forums Salesforce Groups Task Manager by Algoworks Uncaught Error in $A.getCallback() [$ is not defined] Callback failed:

  • Prafull

    Member
    February 1, 2018 at 7:55 am

    Hi Alejandro,

    It seems like JQuery is conflicting with one of your components where you have used JQuery Api and Salesforce Lightning JQuery API.  Lightning has an issue that when you navigation between multiple components then lightning adds new HTML in the DOM each time of component rendering. Previously rendered components hide in the DOM and the current component will be displayed on the screen. So it can be possible that there are multiple JQuery API appended to the DOM and this conflicts the previous Jquery API and user can get the same error as mentioned.

    You may have to use jQuery noConflict function in your component. You may also read more about jQuery’s noConflict function through below link. you need to use noConflict function in your custom component.

    https://api.jquery.com/jquery.noconflict/

    Hope this will help you.

    -Prafull

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos