Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82747

Type Error: Cannot read properties of undefined (reading 'sClass')

$
0
0

Link to test case: Website is behind auth

Debugger code (debug.datatables.net): okahog

Error messages shown:

Uncaught TypeError: Cannot read properties of undefined (reading 'sClass')
at oe (datatables.min.js:16:14190)
at Ce (datatables.min.js:16:29154)
at ye (datatables.min.js:16:22504)
at Oe (datatables.min.js:16:33344)
at O (datatables.min.js:16:6955)
at HTMLTableElement.<anonymous> (datatables.min.js:16:7142)
at Function.each (jquery-3.7.0.min.js:2:3129)
at ce.fn.init.each (jquery-3.7.0.min.js:2:1594)
at ce.fn.init.$ [as dataTable] (datatables.min.js:16:1300)
at B.fn.DataTable (datatables.min.js:16:91021)

Description of problem:

I upgraded to Databtables 2.03, which includes all my dependencies from DT 1.

My config:

// DataTables
document.addEventListener("DOMContentLoaded", function () {
  DataTable.moment("DD-MM-YYYY");

  const table = new DataTable("#coinTable", {
    responsive: true,
    searching: true,
    ordering: true,
    paging: true,
    buttons: ["copy", "excel", "pdf"],
    order: [[1, "asc"]],
    columnDefs: [
      {
        targets: "no-sort",
        orderable: false,
      },
    ],
    lengthMenu: [
      [25, 50, 75, -1],
      [25, 50, 75, "All"],
    ],
  });
});

Viewing all articles
Browse latest Browse all 82747

Trending Articles