I got the error while I updated my WordPress theme. The WordPress jQuery file has enqueued as well and it's loading as well. Also notable that, I used the following function to avoid jQuery conflict on WordPress
(function($) {
//Code
})(jQuery);
The jQuery $
sign is working as well but the 'jQuery' is not working. Here I attached a screenshot of the error.