In my Shopify theme.liquid code, I’ve added the JQuery in the following way:
<script src="{{ 'jquery-3.3.1.min.js' | asset_url }}" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
Error below appears, seems like a direct problem with the JQuery lib file.
Uncaught SyntaxError: Unexpected token 'catch'
at m (jquery-3.3.1.min.js?v=6139541464482896824:2)
at Re (jquery-3.3.1.min.js?v=6139541464482896824:2)
at w.fn.init.append (jquery-3.3.1.min.js?v=6139541464482896824:2)
at HTMLDocument.<anonymous> (?fts=0:450)
at e (jquery.min.js:2)
at t (jquery.min.js:2)
Is there any way to solve this? I didn’t make any modifications.