I am new to bootstrap and jquery. I'm trying to use datatables feature like sorting , while I run my codes I get this error in console:
uncaught SyntaxError: Unexpected token export at popper.js:2371
my popper.js version is: 1.14.3 and I render it in my layout like this :
<body>
@Html.Partial("_navbar")
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p>© @DateTime.Now.Year -www.vidly.com @*My ASP.NET Application*@</p>
</footer>
</div>
@* @Scripts.Render("~/bundles/lib")*@
@Scripts.Render("~/Scripts/jquery-3.3.1.js")
@Scripts.Render("~/Scripts/DataTables/jquery.dataTables.min.js")
@Scripts.Render("~/Scripts/DataTables/dataTables.bootstrap4.min.js")
@Scripts.Render("~/Scripts/popper.js")
@Scripts.Render("~/Scripts/bootstrap.js")
@Scripts.Render("~/Scripts/bootbox.js")
@Scripts.Render("~/Scripts/respond.js")
@Scripts.Render("~/Scripts/DataTables/jquery.dataTables.js")
@Scripts.Render("~/Scripts/DataTables/DataTables.bootstrap.js")
@*@Styles.Render("~/Content/css")*@
@RenderSection("scripts", required: false)
</body>
and the picture of my browser,
Here I have 2 question :1.why I get this error :
uncaught SyntaxError: Unexpected token export at popper.js:2371
2.Why datatables feature like pages number and sorting methods are irregular in my browser.(as you have seen in picture ) this is my css bundles :
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap-lumen.css",
"~/Content/DataTables/css/dataTables.bootstrap.css",
"~/Content/site.css"));
I render it in my _layout:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
@*@Scripts.Render("~/bundles/lib")*@
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
@Html.Partial("_navbar")
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p>© @DateTime.Now.Year -www.vidly.com @*My ASP.NET Application*@</p>
</footer>
</div>
@Scripts.Render("~/bundles/lib")
@RenderSection("scripts", required: false)
</body>
</html>
TIA