Uncaught Error in $A.getCallback() [$ is not defined] Callback failed:

  • Prafull

    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.


    Hope this will help you.


Log In to reply.