I'm making an app with ASP.Net core (1.1), and for some reason my JQuery is giving me some very strange behavior.
In my view page (Page.cshtml) I have:
<link href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" rel="Stylesheet"></link>
<script src='https://cdn.rawgit.com/pguso/jquery-plugin-circliful/master/js/jquery.circliful.min.js'></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
But I was getting JQuery errors even without this code section, so I don't think it's necessary, but just leaving it in for now.
Anyway, in my Layout file (_Layout.cshtml) I have this:
<!-- jQuery-->
<script>console.log("Here");</script>
<script src="~/lib/jquery/dist/jquery.js"></script>
Enclosed in:
<environment names="Development">
and:
<body class="theme-1 sidebar-offcanvas">
tags. The errors I'm getting are:
Uncaught ReferenceError: jQuery is not defined
at bootstrap-toggle.js:180
Uncaught ReferenceError: jQuery is not defined
at jquery.circliful.min.js:1
Uncaught ReferenceError: jQuery is not defined
at jquery-ui.js:314
Uncaught ReferenceError: $ is not defined
at AutoComplete.js:1
Any advice on how I can fix this is greatly appreciated. Apologies for the long-winded nature of this question, this has been a long, ongoing, and incredibly frustrating issue for me.