0

When I add "~/Scripts/jquery-3.*" to my existing bundle, it causes a series of script exceptions within the bundle, such as "Uncaught TypeError: n(...).parents(...).andSelf is not a function", "Uncaught TypeError: $(...).ajaxSuccess is not a function", "Uncaught TypeError: Cannot read properties of undefined (reading 'mode')", and "Uncaught Error: Syntax error, unrecognized expression: #".

Below is my bundle from BundleConfig.cs.

bundles.Add(new ScriptBundle("~/bundles/myownbundlejs").Include(
                    "~/Scripts/jquery-ui.js",
                    "~/Scripts/jquery.unobtrusive*",
                    "~/Scripts/jquery.validate*",
                    "~/Scripts/kendo/" + kendoVersion + "/jszip.min.js",
                    "~/Scripts/kendo/" + kendoVersion + "/kendo.all.min.js",
                    "~/Scripts/kendo/" + kendoVersion + "/kendo.aspnetmvc.min.js",
                    "~/Scripts/kendo/" + kendoVersion + "/kendo.autocomplete.min.js",
                    "~/Scripts/jquery.signalR-2.4.3.min.js",
                    "~/Scripts/jquery-3.*"
                    )); 

The bundle is referenced within rezor view that is included within HEAD tags of my _Layout.cshtml.

@Scripts.Render("~/bundles/myownbundlejs")

My files jquery-3.* file within Scripts folder are as following:

My files jquery-3.* file within Scripts folder are as following:

Tom S
  • 127
  • 1
  • 4
  • 18

0 Answers0