If you have jQuery on your website alongside Google Analytics, you’re loading two jQuery libraries without you knowing due to Google using it too on their analytics script.
Search “jQuery” in there, first result will be the copyright comment plus the version.
<script src="https://www.googletagmanager.com/gtag/js"></script>
<script>$</script>
ReferenceError: $ is not defined
<script>jQuery</script>
ReferenceError: jQuery is not defined