This post shows you how to solve Uncaught TypeError: Cannot read property 'fn' of undefined.

Error throwing when trying to call jQuery library before bootstrap.js. To solve the problem you should change as shown below.

<script src="scripts/jquery-3.3.1.min.js"></script>
<script src="scripts/bootstrap.min.js"></script>

I hope so you can solve the problem Uncaught TypeError: Cannot read property 'fn' of undefined.